#0C331B#0C331B

#0C331B is a dark, moderate green. Relative luminance 0.025; OKLCH L 28.6% C 0.062 H 152.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#0C331B
RGBrgb(12, 51, 27)
HSLhsl(143, 62%, 12%)
HSVhsv(143, 76%, 20%)
CMYKcmyk(76.5%, 0%, 47.1%, 80%)
CIE-LABlab(18.03, -20.35, 11.34)
CIE-LCHlch(18.03, 23.30, 150.87°)
OKLaboklab(28.64% -0.055 0.0282)
OKLCHoklch(28.64% 0.062 152.8)
XYZxyz(1.5331, 2.5248, 1.4432)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C331B #330C24
analogous
#10330C #0C331B #0C332F
triadic
#0C331B #1B0C33 #331B0C
tetradic
#0C331B #0C1033 #330C24 #332F0C
square
#0C331B #0C1033 #330C24 #332F0C
split-complementary
#0C331B #2F0C33 #330C10
monochromatic
#06190D #06190D #0C331B #186535 #23964F

Accessibility & contrast

On white

13.95
#0C331B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#0C331B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C331B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C331B#FFFFFF#000000##FFFFFF
##0C331B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332E19
Deuteranopia (green-blind)
#2E2B1D
Tritanopia (blue-blind)
#00322D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c331b;
/* rgb */ color: rgb(12, 51, 27);
/* oklch */ color: oklch(28.6% 0.062 152.8);
Tailwind
colors: {
  custom: {
    50: '#506b57',
    500: '#0c331b',
    950: '#000000',
  },
}
SCSS
$custom: #0c331b;
$custom-light: #506b57;
$custom-dark: #000000;
JSON
{
  "hex": "#0c331b",
  "rgb": {
    "r": 12,
    "g": 51,
    "b": 27
  },
  "hsl": {
    "h": 143.077,
    "s": 61.905,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2864,
    "c": 0.06182,
    "h": 152.8
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#0C331B
secondary
#6F2C55
accent
#43A7E5
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#020603
muted
#787A78

Preview Lab

Preview with #0C331B

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

Preview Lab → · Contrast checker → · Palette generator →

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