#0C310A#0C310A

#0C310A is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.7% C 0.077 H 142.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#0C310A
RGBrgb(12, 49, 10)
HSLhsl(117, 66%, 12%)
HSVhsv(117, 80%, 19%)
CMYKcmyk(75.5%, 0%, 79.6%, 80.8%)
CIE-LABlab(16.97, -22.41, 19.80)
CIE-LCHlch(16.97, 29.90, 138.54°)
OKLaboklab(27.68% -0.061 0.0469)
OKLCHoklch(27.68% 0.077 142.4)
XYZxyz(1.3046, 2.2966, 0.6616)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C310A #2F0A31
analogous
#20310A #0C310A #0A311C
triadic
#0C310A #0A0C31 #310A0C
tetradic
#0C310A #0A2031 #2F0A31 #311C0A
square
#0C310A #0A2031 #2F0A31 #311C0A
split-complementary
#0C310A #1C0A31 #310A20
monochromatic
#061905 #061905 #0C310A #186414 #25971F

Accessibility & contrast

On white

14.39
#0C310A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0C310A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C310A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C310A#FFFFFF#000000##FFFFFF
##0C310A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C06
Deuteranopia (green-blind)
#2E290E
Tritanopia (blue-blind)
#062F29
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c310a;
/* rgb */ color: rgb(12, 49, 10);
/* oklch */ color: oklch(27.7% 0.077 142.4);
Tailwind
colors: {
  custom: {
    50: '#50694c',
    500: '#0c310a',
    950: '#000000',
  },
}
SCSS
$custom: #0c310a;
$custom-light: #50694c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c310a",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 116.923,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.27681,
    "c": 0.07695,
    "h": 142.4
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#0C310A
secondary
#6B296E
accent
#3FE9E0
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0C310A

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

Preview Lab → · Contrast checker → · Palette generator →

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