#212E02#212E02

#212E02 is a dark, moderate yellow-green. Relative luminance 0.023; OKLCH L 27.9% C 0.068 H 125.1°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#212E02
RGBrgb(33, 46, 2)
HSLhsl(78, 92%, 9%)
HSVhsv(78, 96%, 18%)
CMYKcmyk(28.3%, 0%, 95.7%, 82%)
CIE-LABlab(16.90, -13.27, 23.24)
CIE-LCHlch(16.90, 26.76, 119.72°)
OKLaboklab(27.92% -0.0388 0.0553)
OKLCHoklch(27.92% 0.068 125.1)
XYZxyz(1.6152, 2.2817, 0.4127)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E02 #0F022E
analogous
#2E2502 #212E02 #0B2E02
triadic
#212E02 #02212E #2E0221
tetradic
#212E02 #022E25 #0F022E #2E020B
square
#212E02 #022E25 #0F022E #2E020B
split-complementary
#212E02 #020B2E #25022E
monochromatic
#151D01 #151D01 #212E02 #4B6905 #75A307

Accessibility & contrast

On white

14.42
#212E02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#212E02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E02
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E02#FFFFFF#000000##FFFFFF
##212E021.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2F2A05
Tritanopia (blue-blind)
#232B26
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212e02;
/* rgb */ color: rgb(33, 46, 2);
/* oklch */ color: oklch(27.9% 0.068 125.1);
Tailwind
colors: {
  custom: {
    50: '#5d6648',
    500: '#212e02',
    950: '#000000',
  },
}
SCSS
$custom: #212e02;
$custom-light: #5d6648;
$custom-dark: #000000;
JSON
{
  "hex": "#212e02",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 2
  },
  "hsl": {
    "h": 77.727,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.27915,
    "c": 0.06756,
    "h": 125.1
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#212E02
secondary
#341973
accent
#29FF68
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #212E02

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

Preview Lab → · Contrast checker → · Palette generator →

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