#0C2000#0C2000

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

Color values

HEX#0C2000
RGBrgb(12, 32, 0)
HSLhsl(98, 100%, 6%)
HSVhsv(98, 100%, 13%)
CMYKcmyk(62.5%, 0%, 100%, 87.5%)
CIE-LABlab(9.88, -15.24, 14.48)
CIE-LCHlch(9.88, 21.02, 136.47°)
OKLaboklab(21.79% -0.0445 0.045)
OKLCHoklch(21.79% 0.063 134.7)
XYZxyz(0.6681, 1.1111, 0.1793)
Luminance0.0111 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2000 #140020
analogous
#1C2000 #0C2000 #002004
triadic
#0C2000 #000C20 #20000C
tetradic
#0C2000 #001C20 #140020 #200400
square
#0C2000 #001C20 #140020 #200400
split-complementary
#0C2000 #040020 #20001C
monochromatic
#0B1F00 #0B1F00 #0C2000 #235D00 #3A9A00

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C2000#FFFFFF#000000##FFFFFF
##0C20001.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)
#1F1B02
Tritanopia (blue-blind)
#0B1E19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c2000;
/* rgb */ color: rgb(12, 32, 0);
/* oklch */ color: oklch(21.8% 0.063 134.7);
Tailwind
colors: {
  custom: {
    50: '#4b5b46',
    500: '#0c2000',
    950: '#000000',
  },
}
SCSS
$custom: #0c2000;
$custom-light: #4b5b46;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2000",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 0
  },
  "hsl": {
    "h": 97.5,
    "s": 100,
    "l": 6.275
  },
  "oklch": {
    "l": 0.21792,
    "c": 0.06327,
    "h": 134.7
  },
  "luminance": 0.01111
}

Semantic roles & 50–950 ramp

primary
#0C2000
secondary
#491369
accent
#29FFAF
background
#F4F5F3
surface
#E7E9E5
border
#C3C5C1
text
#010400
muted
#777977

Preview Lab

Preview with #0C2000

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

Preview Lab → · Contrast checker → · Palette generator →

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