#0C310C#0C310C

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

Color values

HEX#0C310C
RGBrgb(12, 49, 12)
HSLhsl(120, 61%, 12%)
HSVhsv(120, 76%, 19%)
CMYKcmyk(75.5%, 0%, 75.5%, 80.8%)
CIE-LABlab(16.99, -22.15, 18.97)
CIE-LCHlch(16.99, 29.16, 139.43°)
OKLaboklab(27.71% -0.0602 0.045)
OKLCHoklch(27.71% 0.075 143.2)
XYZxyz(1.3162, 2.3012, 0.7226)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C310C #310C31
analogous
#1F310C #0C310C #0C311F
triadic
#0C310C #0C0C31 #310C0C
tetradic
#0C310C #0C1F31 #310C31 #311F0C
square
#0C310C #0C1F31 #310C31 #311F0C
split-complementary
#0C310C #1F0C31 #310C1F
monochromatic
#061906 #061906 #0C310C #186218 #249324

Accessibility & contrast

On white

14.38
#0C310C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C310C
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C310C#FFFFFF#000000##FFFFFF
##0C310C1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C08
Deuteranopia (green-blind)
#2E290F
Tritanopia (blue-blind)
#052F29
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c310c;
/* rgb */ color: rgb(12, 49, 12);
/* oklch */ color: oklch(27.7% 0.075 143.2);
Tailwind
colors: {
  custom: {
    50: '#50694d',
    500: '#0c310c',
    950: '#000000',
  },
}
SCSS
$custom: #0c310c;
$custom-light: #50694d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c310c",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 120,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.27707,
    "c": 0.07512,
    "h": 143.2
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#0C310C
secondary
#6D2C6D
accent
#44E4E4
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0C310C

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

Preview Lab → · Contrast checker → · Palette generator →

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