#212F03#212F03

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

Color values

HEX#212F03
RGBrgb(33, 47, 3)
HSLhsl(79, 88%, 10%)
HSVhsv(79, 94%, 18%)
CMYKcmyk(29.8%, 0%, 93.6%, 81.6%)
CIE-LABlab(17.29, -13.75, 23.30)
CIE-LCHlch(17.29, 27.05, 120.54°)
OKLaboklab(28.23% -0.04 0.055)
OKLCHoklch(28.23% 0.068 126)
XYZxyz(1.6602, 2.3629, 0.4548)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F03 #11032F
analogous
#2F2703 #212F03 #0B2F03
triadic
#212F03 #03212F #2F0321
tetradic
#212F03 #032F27 #11032F #2F030B
square
#212F03 #032F27 #11032F #2F030B
split-complementary
#212F03 #030B2F #27032F
monochromatic
#141D02 #141D02 #212F03 #496907 #72A20A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #212f03;
/* rgb */ color: rgb(33, 47, 3);
/* oklch */ color: oklch(28.2% 0.068 126.0);
Tailwind
colors: {
  custom: {
    50: '#5e6748',
    500: '#212f03',
    950: '#000000',
  },
}
SCSS
$custom: #212f03;
$custom-light: #5e6748;
$custom-dark: #000000;
JSON
{
  "hex": "#212f03",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 3
  },
  "hsl": {
    "h": 79.091,
    "s": 88,
    "l": 9.804
  },
  "oklch": {
    "l": 0.28231,
    "c": 0.06796,
    "h": 126
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#212F03
secondary
#371B73
accent
#2AFE6D
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #212F03

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

Preview Lab → · Contrast checker → · Palette generator →

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