#0C310E#0C310E

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

Color values

HEX#0C310E
RGBrgb(12, 49, 14)
HSLhsl(123, 61%, 12%)
HSVhsv(123, 76%, 19%)
CMYKcmyk(75.5%, 0%, 71.4%, 80.8%)
CIE-LABlab(17.02, -21.87, 18.04)
CIE-LCHlch(17.02, 28.34, 140.48°)
OKLaboklab(27.74% -0.0593 0.0429)
OKLCHoklch(27.74% 0.073 144.1)
XYZxyz(1.3291, 2.3064, 0.7905)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C310E #310C2F
analogous
#1D310C #0C310E #0C3121
triadic
#0C310E #0E0C31 #310E0C
tetradic
#0C310E #0C1D31 #310C2F #31210C
square
#0C310E #0C1D31 #310C2F #31210C
split-complementary
#0C310E #210C31 #310C1D
monochromatic
#061907 #061907 #0C310E #18621C #24932A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C310E#FFFFFF#000000##FFFFFF
##0C310E1.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)
#322C0A
Deuteranopia (green-blind)
#2E2911
Tritanopia (blue-blind)
#052F29
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c310e;
/* rgb */ color: rgb(12, 49, 14);
/* oklch */ color: oklch(27.7% 0.073 144.1);
Tailwind
colors: {
  custom: {
    50: '#50694e',
    500: '#0c310e',
    950: '#000000',
  },
}
SCSS
$custom: #0c310e;
$custom-light: #50694e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c310e",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 14
  },
  "hsl": {
    "h": 123.243,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.27735,
    "c": 0.07314,
    "h": 144.1
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#0C310E
secondary
#6D2C69
accent
#44DBE4
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0C310E

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

Preview Lab → · Contrast checker → · Palette generator →

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