#0C331F#0C331F

#0C331F is a dark, muted green. Relative luminance 0.025; OKLCH L 28.7% C 0.057 H 157.1°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#0C331F
RGBrgb(12, 51, 31)
HSLhsl(149, 62%, 12%)
HSVhsv(149, 76%, 20%)
CMYKcmyk(76.5%, 0%, 39.2%, 80%)
CIE-LABlab(18.12, -19.39, 8.80)
CIE-LCHlch(18.12, 21.29, 155.58°)
OKLaboklab(28.74% -0.0527 0.0222)
OKLCHoklch(28.74% 0.057 157.1)
XYZxyz(1.5826, 2.5446, 1.7038)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C331F #330C20
analogous
#0C330C #0C331F #0C3333
triadic
#0C331F #1F0C33 #331F0C
tetradic
#0C331F #0C0C33 #330C20 #33330C
square
#0C331F #0C0C33 #330C20 #33330C
split-complementary
#0C331F #330C33 #330C0C
monochromatic
#06190F #06190F #0C331F #18653D #23965B

Accessibility & contrast

On white

13.92
#0C331F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C331F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C331F#FFFFFF#000000##FFFFFF
##0C331F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332E1E
Deuteranopia (green-blind)
#2D2B20
Tritanopia (blue-blind)
#00332E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c331f;
/* rgb */ color: rgb(12, 51, 31);
/* oklch */ color: oklch(28.7% 0.057 157.1);
Tailwind
colors: {
  custom: {
    50: '#506b5a',
    500: '#0c331f',
    950: '#000000',
  },
}
SCSS
$custom: #0c331f;
$custom-light: #506b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c331f",
  "rgb": {
    "r": 12,
    "g": 51,
    "b": 31
  },
  "hsl": {
    "h": 149.231,
    "s": 61.905,
    "l": 12.353
  },
  "oklch": {
    "l": 0.28742,
    "c": 0.05718,
    "h": 157.1
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#0C331F
secondary
#6F2C4E
accent
#4396E5
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#020604
muted
#787A79

Preview Lab

Preview with #0C331F

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

Preview Lab → · Contrast checker → · Palette generator →

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