#212A01#212A01

#212A01 is a dark, moderate yellow-green. Relative luminance 0.020; OKLCH L 26.7% C 0.063 H 121.5°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#212A01
RGBrgb(33, 42, 1)
HSLhsl(73, 95%, 8%)
HSVhsv(73, 98%, 16%)
CMYKcmyk(21.4%, 0%, 97.6%, 83.5%)
CIE-LABlab(15.39, -10.99, 21.75)
CIE-LCHlch(15.39, 24.37, 116.80°)
OKLaboklab(26.69% -0.0328 0.0537)
OKLCHoklch(26.69% 0.063 121.5)
XYZxyz(1.4607, 1.9815, 0.3342)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A01 #0A012A
analogous
#2A1E01 #212A01 #0C2A01
triadic
#212A01 #01212A #2A0121
tetradic
#212A01 #012A1E #0A012A #2A010C
square
#212A01 #012A1E #0A012A #2A010C
split-complementary
#212A01 #010C2A #1E012A
monochromatic
#171E01 #171E01 #212A01 #506602 #7FA204

Accessibility & contrast

On white

15.04
#212A01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#212A01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A01
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A01#FFFFFF#000000##FFFFFF
##212A011.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2700
Deuteranopia (green-blind)
#2C2704
Tritanopia (blue-blind)
#242722
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #212a01;
/* rgb */ color: rgb(33, 42, 1);
/* oklch */ color: oklch(26.7% 0.063 121.5);
Tailwind
colors: {
  custom: {
    50: '#5d6347',
    500: '#212a01',
    950: '#000000',
  },
}
SCSS
$custom: #212a01;
$custom-light: #5d6347;
$custom-dark: #000000;
JSON
{
  "hex": "#212a01",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 1
  },
  "hsl": {
    "h": 73.171,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.26687,
    "c": 0.06294,
    "h": 121.5
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#212A01
secondary
#2A1670
accent
#29FF58
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #212A01

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

Preview Lab → · Contrast checker → · Palette generator →

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