#212D04#212D04

#212D04 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.6% C 0.064 H 124.7°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#212D04
RGBrgb(33, 45, 4)
HSLhsl(78, 84%, 10%)
HSVhsv(78, 91%, 18%)
CMYKcmyk(26.7%, 0%, 91.1%, 82.4%)
CIE-LABlab(16.55, -12.48, 21.98)
CIE-LCHlch(16.55, 25.28, 119.58°)
OKLaboklab(27.64% -0.0364 0.0525)
OKLCHoklch(27.64% 0.064 124.7)
XYZxyz(1.5875, 2.2089, 0.4576)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D04 #10042D
analogous
#2D2504 #212D04 #0D2D04
triadic
#212D04 #04212D #2D0421
tetradic
#212D04 #042D25 #10042D #2D040D
square
#212D04 #042D25 #10042D #2D040D
split-complementary
#212D04 #040D2D #25042D
monochromatic
#151C02 #151C02 #212D04 #4A6509 #739D0E

Accessibility & contrast

On white

14.57
#212D04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#212D04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D04
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D04#FFFFFF#000000##FFFFFF
##212D041.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2F2907
Tritanopia (blue-blind)
#232A25
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #212d04;
/* rgb */ color: rgb(33, 45, 4);
/* oklch */ color: oklch(27.6% 0.064 124.7);
Tailwind
colors: {
  custom: {
    50: '#5d6649',
    500: '#212d04',
    950: '#000000',
  },
}
SCSS
$custom: #212d04;
$custom-light: #5d6649;
$custom-dark: #000000;
JSON
{
  "hex": "#212d04",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 4
  },
  "hsl": {
    "h": 77.561,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.27635,
    "c": 0.06386,
    "h": 124.7
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#212D04
secondary
#351D70
accent
#2EFA6A
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040501
muted
#797A77

Preview Lab

Preview with #212D04

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

Preview Lab → · Contrast checker → · Palette generator →

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