#3B323F Onyx

rgb(59, 50, 63)

Color conversions

HEX
#3B323F
RGB
rgb(59, 50, 63)
RGBA
rgba(59, 50, 63, 1)
HSL
hsl(282, 12%, 22%)
HSV / HSB
hsv(282, 21%, 25%)
CMYK
cmyk(6%, 21%, 0%, 75%)

Wide-gamut spaces

XYZ
xyz(3.841, 3.57, 5.188)
LAB
lab(22.2 6.95 -6.65)
LCH
lch(22.2 9.62 316.25)
OKLAB
oklab(33.19% 0.0182 -0.0179)
OKLCH
oklch(33.19% 0.0256 315.45)
Nearest name
Onyx

Shades, tints and tones

Shades

Tints

Tones

Color harmonies

Complementary

The hue directly opposite on the color wheel. Maximum contrast, ideal for a single accent against a dominant brand color.

Analogous

Neighbouring hues that share a temperature. The safest harmony for calm, cohesive interfaces.

Triadic

Three hues evenly spaced 120 degrees apart. Vibrant and balanced — use one as dominant and the other two sparingly.

Split Complementary

The complement split into two adjacent hues. Nearly the contrast of complementary with noticeably less tension.

Square (Tetradic)

Four hues at 90-degree intervals. A rich set for illustration, data visualisation, and category coding.

Rectangle (Tetradic)

Two complementary pairs offset by 60 degrees. Gives two warm and two cool options in one system.

Monochromatic

A single hue across five lightness levels. The foundation of most UI scales and the most accessible starting point.

Similar colors

Closest matches

Opacity variations

#3b323f1a

#3b323f33

#3b323f4d

#3b323f66

#3b323f80

#3b323f99

#3b323fb3

#3b323fcc

#3b323fe6

#3b323fff

Accessibility and contrast

On white

12.25:1

Body text AAA · Large text AA

On black

1.71:1

Body text Fail · Large text Fail

White-on-color contrast is 12.25:1.

Color blindness preview

Protanopia

No red cones — ~1% of men

Protanomaly

Reduced red sensitivity — ~1% of men

Deuteranopia

No green cones — ~1% of men

Deuteranomaly

Reduced green sensitivity — ~5% of men

Tritanopia

No blue cones — very rare

Tritanomaly

Reduced blue sensitivity — very rare

Achromatopsia

No color perception — ~1 in 30,000

Achromatomaly

Partial color perception — rare

Meaning, psychology and brand usage

Craft, imagination, and modern premium

Violet reads as creative and considered. Because it is rare in nature it feels designed rather than found, which is why it has become the signature of developer tooling and creative software over the last decade.

Royalty and luxury in Western markets, mourning in Catholic tradition and parts of Latin America, and spirituality across several Eastern traditions.

Tyrian purple was extracted from murex sea snails at roughly 250,000 shells per gram, restricting it to emperors by law. Perkin's accidental synthesis of mauveine in 1856 launched the entire synthetic dye industry.

Strong for creative tools, beauty, and premium subscriptions. Keep the surrounding neutrals genuinely neutral — violet plus warm gray quickly reads dated.

Common industries: Creative software, Beauty, Education, Streaming, Web3. Pairs well with lime for a sharp accent, warm white for softness, near-black for luxury.

Code exports

CSS

:root {
  --color-onyx: #3b323f;
  --color-onyx-rgb: 59 50 63;
  --color-onyx-hsl: 282 12% 22%;
  --color-onyx-oklch: 33.19% 0.0256 315.45;
}

.element {
  color: #3b323f;
  background-color: hsl(282, 12%, 22%);
  border: 1px solid rgb(59 50 63 / 40%);
}

SCSS

$onyx: #3b323f;
$onyx-light: #9d999f;
$onyx-dark: #1e1920;

.element {
  color: $onyx;
  background: rgba($onyx, 0.12);

  &:hover {
    color: darken($onyx, 8%);
  }
}

LESS

@onyx: #3b323f;
@onyx-light: lighten(@onyx, 12%);
@onyx-dark: darken(@onyx, 12%);

.element {
  color: @onyx;
  background: fade(@onyx, 12%);
}

Tailwind CSS

/* Tailwind v4 — src/styles.css */
@theme {
  --color-onyx-50: #d8d6d9;
  --color-onyx-100: #c4c2c5;
  --color-onyx-200: #b1adb2;
  --color-onyx-300: #89848c;
  --color-onyx-400: #625b65;
  --color-onyx-500: #3b323f;
  --color-onyx-600: #352d39;
  --color-onyx-700: #29232c;
  --color-onyx-800: #1e1920;
  --color-onyx-900: #120f13;
}

/* Usage */
<div class="bg-onyx-500 text-onyx-50 ring-onyx-600" />

/* Arbitrary value, no config needed */
<div class="bg-[#3b323f]" />

Bootstrap

// Bootstrap 5 — _variables.scss (before importing bootstrap)
$onyx: #3b323f;
$primary: $onyx;

$theme-colors: map-merge($theme-colors, (
  "onyx": $onyx
));

// Generates .text-onyx, .bg-onyx, .btn-onyx
@import "bootstrap/scss/bootstrap";

Flutter

import 'package:flutter/material.dart';

const Color onyx = Color(0xFF3B323F);

// As a MaterialColor swatch
const MaterialColor onyxSwatch = MaterialColor(0xFF3B323F, <int, Color>{
  50: Color(0xFFD8D6D9),
  100: Color(0xFFC4C2C5),
  200: Color(0xFFB1ADB2),
  300: Color(0xFF89848C),
  400: Color(0xFF625B65),
  500: Color(0xFF3B323F),
  600: Color(0xFF352D39),
  700: Color(0xFF29232C),
  800: Color(0xFF1E1920),
  900: Color(0xFF120F13),
});

Swift / SwiftUI

import SwiftUI

extension Color {
    /// #3b323f — Onyx
    static let onyx = Color(
        red: 0.2314,
        green: 0.1961,
        blue: 0.2471
    )
}

// UIKit
extension UIColor {
    static let onyx = UIColor(
        red: 0.2314,
        green: 0.1961,
        blue: 0.2471,
        alpha: 1.0
    )
}

Android

<!-- res/values/colors.xml -->
<resources>
    <color name="onyx">#3B323F</color>
    <color name="onyx_translucent">#803B323F</color>
</resources>

<!-- Jetpack Compose -->
val Onyx = Color(0xFF3B323F)

JavaScript

export const ONYX = {
  hex: "#3b323f",
  rgb: [59, 50, 63],
  hsl: [282, 12, 22],
  oklch: "oklch(33.19% 0.0256 315.45)",
};

JSON tokens

{
  "$schema": "https://design-tokens.org/schema.json",
  "onyx": {
    "$type": "color",
    "$value": "#3b323f",
    "$description": "Onyx — generated by ColorVerse AI"
  }
}