#212F01#212F01

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

Color values

HEX#212F01
RGBrgb(33, 47, 1)
HSLhsl(78, 96%, 9%)
HSVhsv(78, 98%, 18%)
CMYKcmyk(29.8%, 0%, 97.9%, 81.6%)
CIE-LABlab(17.27, -13.94, 24.09)
CIE-LCHlch(17.27, 27.83, 120.07°)
OKLaboklab(28.21% -0.0408 0.057)
OKLCHoklch(28.21% 0.07 125.6)
XYZxyz(1.6492, 2.3585, 0.3971)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F01 #0F012F
analogous
#2F2601 #212F01 #0A2F01
triadic
#212F01 #01212F #2F0121
tetradic
#212F01 #012F26 #0F012F #2F010A
square
#212F01 #012F26 #0F012F #2F010A
split-complementary
#212F01 #010A2F #26012F
monochromatic
#151E01 #151E01 #212F01 #4B6B02 #75A704

Accessibility & contrast

On white

14.27
#212F01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F01
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F01#FFFFFF#000000##FFFFFF
##212F011.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B00
Deuteranopia (green-blind)
#302A04
Tritanopia (blue-blind)
#232C26
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212f01;
/* rgb */ color: rgb(33, 47, 1);
/* oklch */ color: oklch(28.2% 0.070 125.6);
Tailwind
colors: {
  custom: {
    50: '#5e6747',
    500: '#212f01',
    950: '#000000',
  },
}
SCSS
$custom: #212f01;
$custom-light: #5e6747;
$custom-dark: #000000;
JSON
{
  "hex": "#212f01",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 1
  },
  "hsl": {
    "h": 78.261,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.28208,
    "c": 0.07013,
    "h": 125.6
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#212F01
secondary
#341775
accent
#29FF6A
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #212F01

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

Preview Lab → · Contrast checker → · Palette generator →

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