#0C2A01#0C2A01

#0C2A01 is a dark, moderate green. Relative luminance 0.017; OKLCH L 25.2% C 0.076 H 138.1°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#0C2A01
RGBrgb(12, 42, 1)
HSLhsl(104, 95%, 8%)
HSVhsv(104, 98%, 16%)
CMYKcmyk(71.4%, 0%, 97.6%, 83.5%)
CIE-LABlab(14.04, -20.46, 19.74)
CIE-LCHlch(14.04, 28.43, 136.02°)
OKLaboklab(25.22% -0.0567 0.0508)
OKLCHoklch(25.22% 0.076 138.1)
XYZxyz(0.9850, 1.7362, 0.3119)
Luminance0.0174 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A01 #1F012A
analogous
#202A01 #0C2A01 #012A0A
triadic
#0C2A01 #010C2A #2A010C
tetradic
#0C2A01 #01202A #1F012A #2A0A01
square
#0C2A01 #01202A #1F012A #2A0A01
split-complementary
#0C2A01 #0A012A #2A0120
monochromatic
#091E01 #091E01 #0C2A01 #1D6602 #2EA204

Accessibility & contrast

On white

15.59
#0C2A01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C2A01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A01
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A01#FFFFFF#000000##FFFFFF
##0C2A011.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2500
Deuteranopia (green-blind)
#282304
Tritanopia (blue-blind)
#092822
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2a01;
/* rgb */ color: rgb(12, 42, 1);
/* oklch */ color: oklch(25.2% 0.076 138.1);
Tailwind
colors: {
  custom: {
    50: '#4e6447',
    500: '#0c2a01',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a01;
$custom-light: #4e6447;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a01",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 1
  },
  "hsl": {
    "h": 103.902,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.25222,
    "c": 0.07613,
    "h": 138.1
  },
  "luminance": 0.01736
}

Semantic roles & 50–950 ramp

primary
#0C2A01
secondary
#581670
accent
#29FFC6
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#020500
muted
#787A77

Preview Lab

Preview with #0C2A01

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

Preview Lab → · Contrast checker → · Palette generator →

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