#212F02#212F02

#212F02 is a dark, moderate yellow-green. Relative luminance 0.024; OKLCH L 28.2% C 0.069 H 125.8°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#212F02
RGBrgb(33, 47, 2)
HSLhsl(79, 92%, 10%)
HSVhsv(79, 96%, 18%)
CMYKcmyk(29.8%, 0%, 95.7%, 81.6%)
CIE-LABlab(17.28, -13.85, 23.70)
CIE-LCHlch(17.28, 27.44, 120.30°)
OKLaboklab(28.22% -0.0404 0.056)
OKLCHoklch(28.22% 0.069 125.8)
XYZxyz(1.6547, 2.3607, 0.4259)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F02 #10022F
analogous
#2F2702 #212F02 #0A2F02
triadic
#212F02 #02212F #2F0221
tetradic
#212F02 #022F27 #10022F #2F020A
square
#212F02 #022F27 #10022F #2F020A
split-complementary
#212F02 #020A2F #27022F
monochromatic
#151D01 #151D01 #212F02 #4A6A04 #73A407

Accessibility & contrast

On white

14.26
#212F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#212F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F02
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F02#FFFFFF#000000##FFFFFF
##212F021.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B00
Deuteranopia (green-blind)
#302A05
Tritanopia (blue-blind)
#232C27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212f02;
/* rgb */ color: rgb(33, 47, 2);
/* oklch */ color: oklch(28.2% 0.069 125.8);
Tailwind
colors: {
  custom: {
    50: '#5e6748',
    500: '#212f02',
    950: '#000000',
  },
}
SCSS
$custom: #212f02;
$custom-light: #5e6748;
$custom-dark: #000000;
JSON
{
  "hex": "#212f02",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 78.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.28219,
    "c": 0.06904,
    "h": 125.8
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#212F02
secondary
#351974
accent
#29FF6B
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #212F02

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

Preview Lab → · Contrast checker → · Palette generator →

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