#212A02#212A02

#212A02 is a dark, moderate yellow-green. Relative luminance 0.020; OKLCH L 26.7% C 0.062 H 121.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#212A02
RGBrgb(33, 42, 2)
HSLhsl(74, 91%, 9%)
HSVhsv(74, 95%, 16%)
CMYKcmyk(21.4%, 0%, 95.2%, 83.5%)
CIE-LABlab(15.40, -10.88, 21.36)
CIE-LCHlch(15.40, 23.97, 117.00°)
OKLaboklab(26.7% -0.0324 0.0525)
OKLCHoklch(26.7% 0.062 121.6)
XYZxyz(1.4661, 1.9836, 0.3631)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A02 #0B022A
analogous
#2A1F02 #212A02 #0D2A02
triadic
#212A02 #02212A #2A0221
tetradic
#212A02 #022A1F #0B022A #2A020D
square
#212A02 #022A1F #0B022A #2A020D
split-complementary
#212A02 #020D2A #1F022A
monochromatic
#171D01 #171D01 #212A02 #4F6405 #7D9F08

Accessibility & contrast

On white

15.03
#212A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#212A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A02
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A02#FFFFFF#000000##FFFFFF
##212A021.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2700
Deuteranopia (green-blind)
#2C2705
Tritanopia (blue-blind)
#232722
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #212a02;
/* rgb */ color: rgb(33, 42, 2);
/* oklch */ color: oklch(26.7% 0.062 121.6);
Tailwind
colors: {
  custom: {
    50: '#5d6347',
    500: '#212a02',
    950: '#000000',
  },
}
SCSS
$custom: #212a02;
$custom-light: #5d6347;
$custom-dark: #000000;
JSON
{
  "hex": "#212a02",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 73.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.267,
    "c": 0.06171,
    "h": 121.6
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#212A02
secondary
#2C196F
accent
#29FF59
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #212A02

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

Preview Lab → · Contrast checker → · Palette generator →

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