#0C2001#0C2001

#0C2001 is a very dark, moderate yellow-green. Relative luminance 0.011; OKLCH L 21.8% C 0.062 H 135.3°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#0C2001
RGBrgb(12, 32, 1)
HSLhsl(99, 94%, 6%)
HSVhsv(99, 97%, 13%)
CMYKcmyk(62.5%, 0%, 96.9%, 87.5%)
CIE-LABlab(9.90, -15.09, 14.10)
CIE-LCHlch(9.90, 20.65, 136.95°)
OKLaboklab(21.81% -0.0437 0.0433)
OKLCHoklch(21.81% 0.062 135.3)
XYZxyz(0.6736, 1.1133, 0.2081)
Luminance0.0111 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2001 #150120
analogous
#1C2001 #0C2001 #012006
triadic
#0C2001 #010C20 #20010C
tetradic
#0C2001 #011C20 #150120 #200601
square
#0C2001 #011C20 #150120 #200601
split-complementary
#0C2001 #060120 #20011C
monochromatic
#0B1E01 #0B1E01 #0C2001 #225B03 #399705

Accessibility & contrast

On white

17.18
#0C2001 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C2001 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2001
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2001#FFFFFF#000000##FFFFFF
##0C20011.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221C00
Deuteranopia (green-blind)
#1F1B03
Tritanopia (blue-blind)
#0B1E1A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c2001;
/* rgb */ color: rgb(12, 32, 1);
/* oklch */ color: oklch(21.8% 0.062 135.3);
Tailwind
colors: {
  custom: {
    50: '#4b5b47',
    500: '#0c2001',
    950: '#000000',
  },
}
SCSS
$custom: #0c2001;
$custom-light: #4b5b47;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2001",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 1
  },
  "hsl": {
    "h": 98.71,
    "s": 93.939,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21812,
    "c": 0.06153,
    "h": 135.3
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#0C2001
secondary
#4A1567
accent
#29FFB3
background
#F4F5F3
surface
#E7E9E5
border
#C3C5C1
text
#010400
muted
#777977

Preview Lab

Preview with #0C2001

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

Preview Lab → · Contrast checker → · Palette generator →

#0C2001 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva