#0C310F#0C310F

#0C310F is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.8% C 0.072 H 144.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#0C310F
RGBrgb(12, 49, 15)
HSLhsl(125, 61%, 12%)
HSVhsv(125, 76%, 19%)
CMYKcmyk(75.5%, 0%, 69.4%, 80.8%)
CIE-LABlab(17.03, -21.71, 17.54)
CIE-LCHlch(17.03, 27.91, 141.07°)
OKLaboklab(27.75% -0.0588 0.0417)
OKLCHoklch(27.75% 0.072 144.6)
XYZxyz(1.3361, 2.3091, 0.8271)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C310F #310C2E
analogous
#1C310C #0C310F #0C3122
triadic
#0C310F #0F0C31 #310F0C
tetradic
#0C310F #0C1C31 #310C2E #31220C
square
#0C310F #0C1C31 #310C2E #31220C
split-complementary
#0C310F #220C31 #310C1C
monochromatic
#061908 #061908 #0C310F #18621E #24932D

Accessibility & contrast

On white

14.37
#0C310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C310F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C310F#FFFFFF#000000##FFFFFF
##0C310F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C0C
Deuteranopia (green-blind)
#2D2912
Tritanopia (blue-blind)
#05302A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c310f;
/* rgb */ color: rgb(12, 49, 15);
/* oklch */ color: oklch(27.8% 0.072 144.6);
Tailwind
colors: {
  custom: {
    50: '#50694e',
    500: '#0c310f',
    950: '#000000',
  },
}
SCSS
$custom: #0c310f;
$custom-light: #50694e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c310f",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 124.865,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.2775,
    "c": 0.07211,
    "h": 144.6
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#0C310F
secondary
#6D2C68
accent
#44D7E4
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0C310F

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

Preview Lab → · Contrast checker → · Palette generator →

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