#212D0F#212D0F

#212D0F is a dark, muted yellow-green. Relative luminance 0.022; OKLCH L 27.8% C 0.052 H 127.6°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#212D0F
RGBrgb(33, 45, 15)
HSLhsl(84, 50%, 12%)
HSVhsv(84, 67%, 18%)
CMYKcmyk(26.7%, 0%, 66.7%, 82.4%)
CIE-LABlab(16.67, -11.32, 17.36)
CIE-LCHlch(16.67, 20.73, 123.11°)
OKLaboklab(27.78% -0.0318 0.0413)
OKLCHoklch(27.78% 0.052 127.6)
XYZxyz(1.6518, 2.2346, 0.7961)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D0F #1B0F2D
analogous
#2D2A0F #212D0F #122D0F
triadic
#212D0F #0F212D #2D0F21
tetradic
#212D0F #0F2D2A #1B0F2D #2D0F12
square
#212D0F #0F2D2A #1B0F2D #2D0F12
split-complementary
#212D0F #0F122D #2A0F2D
monochromatic
#111708 #111708 #212D0F #435B1E #64892E

Accessibility & contrast

On white

14.51
#212D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#212D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D0F
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D0F#FFFFFF#000000##FFFFFF
##212D0F1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A0C
Deuteranopia (green-blind)
#2E2911
Tritanopia (blue-blind)
#222B26
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #212d0f;
/* rgb */ color: rgb(33, 45, 15);
/* oklch */ color: oklch(27.8% 0.052 127.6);
Tailwind
colors: {
  custom: {
    50: '#5d664e',
    500: '#212d0f',
    950: '#000000',
  },
}
SCSS
$custom: #212d0f;
$custom-light: #5d664e;
$custom-dark: #000000;
JSON
{
  "hex": "#212d0f",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 15
  },
  "hsl": {
    "h": 84,
    "s": 50,
    "l": 11.765
  },
  "oklch": {
    "l": 0.27777,
    "c": 0.05209,
    "h": 127.6
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#212D0F
secondary
#473166
accent
#4EDA86
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040501
muted
#797A77

Preview Lab

Preview with #212D0F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#212D0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva