#212D02#212D02

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

Color values

HEX#212D02
RGBrgb(33, 45, 2)
HSLhsl(77, 91%, 9%)
HSVhsv(77, 96%, 18%)
CMYKcmyk(26.7%, 0%, 95.6%, 82.4%)
CIE-LABlab(16.53, -12.68, 22.77)
CIE-LCHlch(16.53, 26.07, 119.11°)
OKLaboklab(27.61% -0.0372 0.0546)
OKLCHoklch(27.61% 0.066 124.3)
XYZxyz(1.5766, 2.2045, 0.3999)
Luminance0.0220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D02 #0E022D
analogous
#2D2402 #212D02 #0C2D02
triadic
#212D02 #02212D #2D0221
tetradic
#212D02 #022D24 #0E022D #2D020C
square
#212D02 #022D24 #0E022D #2D020C
split-complementary
#212D02 #020C2D #24022D
monochromatic
#151D01 #151D01 #212D02 #4C6805 #77A207

Accessibility & contrast

On white

14.58
#212D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212D02
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D02#FFFFFF#000000##FFFFFF
##212D021.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212d02;
/* rgb */ color: rgb(33, 45, 2);
/* oklch */ color: oklch(27.6% 0.066 124.3);
Tailwind
colors: {
  custom: {
    50: '#5d6648',
    500: '#212d02',
    950: '#000000',
  },
}
SCSS
$custom: #212d02;
$custom-light: #5d6648;
$custom-dark: #000000;
JSON
{
  "hex": "#212d02",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 76.744,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.2761,
    "c": 0.0661,
    "h": 124.3
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#212D02
secondary
#321972
accent
#29FF65
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040500
muted
#797A77

Preview Lab

Preview with #212D02

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

Preview Lab → · Contrast checker → · Palette generator →

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