#212F0B#212F0B

#212F0B is a dark, muted yellow-green. Relative luminance 0.024; OKLCH L 28.3% C 0.060 H 127.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#212F0B
RGBrgb(33, 47, 11)
HSLhsl(83, 62%, 11%)
HSVhsv(83, 77%, 18%)
CMYKcmyk(29.8%, 0%, 76.6%, 81.6%)
CIE-LABlab(17.37, -12.97, 20.13)
CIE-LCHlch(17.37, 23.95, 122.79°)
OKLaboklab(28.32% -0.0368 0.0473)
OKLCHoklch(28.32% 0.06 127.9)
XYZxyz(1.7041, 2.3805, 0.6862)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F0B #190B2F
analogous
#2F2B0B #212F0B #0F2F0B
triadic
#212F0B #0B212F #2F0B21
tetradic
#212F0B #0B2F2B #190B2F #2F0B0F
square
#212F0B #0B2F2B #190B2F #2F0B0F
split-complementary
#212F0B #0B0F2F #2B0B2F
monochromatic
#111906 #111906 #212F0B #446117 #679222

Accessibility & contrast

On white

14.23
#212F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#212F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F0B
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F0B#FFFFFF#000000##FFFFFF
##212F0B1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B07
Deuteranopia (green-blind)
#302A0E
Tritanopia (blue-blind)
#222D27
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212f0b;
/* rgb */ color: rgb(33, 47, 11);
/* oklch */ color: oklch(28.3% 0.060 127.9);
Tailwind
colors: {
  custom: {
    50: '#5d674c',
    500: '#212f0b',
    950: '#000000',
  },
}
SCSS
$custom: #212f0b;
$custom-light: #5d674c;
$custom-dark: #000000;
JSON
{
  "hex": "#212f0b",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 11
  },
  "hsl": {
    "h": 83.333,
    "s": 62.069,
    "l": 11.373
  },
  "oklch": {
    "l": 0.28324,
    "c": 0.05992,
    "h": 127.9
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#212F0B
secondary
#442A6B
accent
#43E582
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #212F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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