#212F04#212F04

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

Color values

HEX#212F04
RGBrgb(33, 47, 4)
HSLhsl(80, 84%, 10%)
HSVhsv(80, 91%, 18%)
CMYKcmyk(29.8%, 0%, 91.5%, 81.6%)
CIE-LABlab(17.30, -13.65, 22.91)
CIE-LCHlch(17.30, 26.66, 120.79°)
OKLaboklab(28.24% -0.0395 0.054)
OKLCHoklch(28.24% 0.067 126.2)
XYZxyz(1.6656, 2.3651, 0.4836)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F04 #12042F
analogous
#2F2804 #212F04 #0B2F04
triadic
#212F04 #04212F #2F0421
tetradic
#212F04 #042F28 #12042F #2F040B
square
#212F04 #042F28 #12042F #2F040B
split-complementary
#212F04 #040B2F #28042F
monochromatic
#141C02 #141C02 #212F04 #496709 #70A00E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212F04#FFFFFF#000000##FFFFFF
##212F041.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)
#302A07
Tritanopia (blue-blind)
#232C27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212f04;
/* rgb */ color: rgb(33, 47, 4);
/* oklch */ color: oklch(28.2% 0.067 126.2);
Tailwind
colors: {
  custom: {
    50: '#5e6749',
    500: '#212f04',
    950: '#000000',
  },
}
SCSS
$custom: #212f04;
$custom-light: #5e6749;
$custom-dark: #000000;
JSON
{
  "hex": "#212f04",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 79.535,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.28243,
    "c": 0.0669,
    "h": 126.2
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#212F04
secondary
#391D72
accent
#2DFB70
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #212F04

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

Preview Lab → · Contrast checker → · Palette generator →

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