#212B02#212B02

#212B02 is a dark, moderate yellow-green. Relative luminance 0.021; OKLCH L 27.0% C 0.063 H 122.6°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#212B02
RGBrgb(33, 43, 2)
HSLhsl(75, 91%, 9%)
HSVhsv(75, 95%, 17%)
CMYKcmyk(23.3%, 0%, 95.3%, 83.1%)
CIE-LABlab(15.78, -11.49, 21.84)
CIE-LCHlch(15.78, 24.67, 117.75°)
OKLaboklab(27% -0.034 0.0532)
OKLCHoklch(27% 0.063 122.6)
XYZxyz(1.5021, 2.0555, 0.3750)
Luminance0.0205 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B02 #0C022B
analogous
#2B2102 #212B02 #0D2B02
triadic
#212B02 #02212B #2B0221
tetradic
#212B02 #022B21 #0C022B #2B020D
square
#212B02 #022B21 #0C022B #2B020D
split-complementary
#212B02 #020D2B #21022B
monochromatic
#161D01 #161D01 #212B02 #4E6505 #7BA007

Accessibility & contrast

On white

14.88
#212B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#212B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B02
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B02#FFFFFF#000000##FFFFFF
##212B021.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2800
Deuteranopia (green-blind)
#2D2705
Tritanopia (blue-blind)
#232823
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #212b02;
/* rgb */ color: rgb(33, 43, 2);
/* oklch */ color: oklch(27.0% 0.063 122.6);
Tailwind
colors: {
  custom: {
    50: '#5d6447',
    500: '#212b02',
    950: '#000000',
  },
}
SCSS
$custom: #212b02;
$custom-light: #5d6447;
$custom-dark: #000000;
JSON
{
  "hex": "#212b02",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 74.634,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.27003,
    "c": 0.06317,
    "h": 122.6
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#212B02
secondary
#2E1970
accent
#29FF5D
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #212B02

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

Preview Lab → · Contrast checker → · Palette generator →

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