#212F0A#212F0A

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

Color values

HEX#212F0A
RGBrgb(33, 47, 10)
HSLhsl(83, 65%, 11%)
HSVhsv(83, 79%, 18%)
CMYKcmyk(29.8%, 0%, 78.7%, 81.6%)
CIE-LABlab(17.36, -13.07, 20.54)
CIE-LCHlch(17.36, 24.34, 122.47°)
OKLaboklab(28.31% -0.0372 0.0482)
OKLCHoklch(28.31% 0.061 127.6)
XYZxyz(1.6985, 2.3782, 0.6567)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F0A #180A2F
analogous
#2F2A0A #212F0A #0E2F0A
triadic
#212F0A #0A212F #2F0A21
tetradic
#212F0A #0A2F2A #180A2F #2F0A0E
square
#212F0A #0A2F2A #180A2F #2F0A0E
split-complementary
#212F0A #0A0E2F #2A0A2F
monochromatic
#121905 #121905 #212F0A #446115 #68941F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212F0A#FFFFFF#000000##FFFFFF
##212F0A1.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)
#322B06
Deuteranopia (green-blind)
#302A0D
Tritanopia (blue-blind)
#222D27
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212f0a;
/* rgb */ color: rgb(33, 47, 10);
/* oklch */ color: oklch(28.3% 0.061 127.6);
Tailwind
colors: {
  custom: {
    50: '#5d674c',
    500: '#212f0a',
    950: '#000000',
  },
}
SCSS
$custom: #212f0a;
$custom-light: #5d674c;
$custom-dark: #000000;
JSON
{
  "hex": "#212f0a",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 10
  },
  "hsl": {
    "h": 82.703,
    "s": 64.912,
    "l": 11.176
  },
  "oklch": {
    "l": 0.28312,
    "c": 0.06089,
    "h": 127.6
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#212F0A
secondary
#42296C
accent
#40E87F
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #212F0A

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

Preview Lab → · Contrast checker → · Palette generator →

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