#0C310D#0C310D

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

Color values

HEX#0C310D
RGBrgb(12, 49, 13)
HSLhsl(122, 61%, 12%)
HSVhsv(122, 76%, 19%)
CMYKcmyk(75.5%, 0%, 73.5%, 80.8%)
CIE-LABlab(17.01, -22.01, 18.51)
CIE-LCHlch(17.01, 28.76, 139.93°)
OKLaboklab(27.72% -0.0597 0.0439)
OKLCHoklch(27.72% 0.074 143.7)
XYZxyz(1.3225, 2.3037, 0.7557)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C310D #310C30
analogous
#1E310C #0C310D #0C3120
triadic
#0C310D #0D0C31 #310D0C
tetradic
#0C310D #0C1E31 #310C30 #31200C
square
#0C310D #0C1E31 #310C30 #31200C
split-complementary
#0C310D #200C31 #310C1E
monochromatic
#061907 #061907 #0C310D #18621A #249327

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C310D#FFFFFF#000000##FFFFFF
##0C310D1.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)
#322C09
Deuteranopia (green-blind)
#2E2910
Tritanopia (blue-blind)
#052F29
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c310d;
/* rgb */ color: rgb(12, 49, 13);
/* oklch */ color: oklch(27.7% 0.074 143.7);
Tailwind
colors: {
  custom: {
    50: '#50694d',
    500: '#0c310d',
    950: '#000000',
  },
}
SCSS
$custom: #0c310d;
$custom-light: #50694d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c310d",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 13
  },
  "hsl": {
    "h": 121.622,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.27721,
    "c": 0.07414,
    "h": 143.7
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#0C310D
secondary
#6D2C6B
accent
#44DFE4
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0C310D

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

Preview Lab → · Contrast checker → · Palette generator →

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