#0D310C#0D310C

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

Color values

HEX#0D310C
RGBrgb(13, 49, 12)
HSLhsl(118, 61%, 12%)
HSVhsv(118, 76%, 19%)
CMYKcmyk(73.5%, 0%, 75.5%, 80.8%)
CIE-LABlab(17.03, -21.86, 19.02)
CIE-LCHlch(17.03, 28.98, 138.98°)
OKLaboklab(27.75% -0.0595 0.0451)
OKLCHoklch(27.75% 0.075 142.8)
XYZxyz(1.3306, 2.3086, 0.7232)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D310C #300C31
analogous
#20310C #0D310C #0C311E
triadic
#0D310C #0C0D31 #310C0D
tetradic
#0D310C #0C2031 #300C31 #311E0C
square
#0D310C #0C2031 #300C31 #311E0C
split-complementary
#0D310C #1E0C31 #310C20
monochromatic
#071906 #071906 #0D310C #1A6218 #279324

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0D310C#FFFFFF#000000##FFFFFF
##0D310C1.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)
#322C08
Deuteranopia (green-blind)
#2E290F
Tritanopia (blue-blind)
#072F29
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0d310c;
/* rgb */ color: rgb(13, 49, 12);
/* oklch */ color: oklch(27.7% 0.075 142.8);
Tailwind
colors: {
  custom: {
    50: '#51694d',
    500: '#0d310c',
    950: '#000000',
  },
}
SCSS
$custom: #0d310c;
$custom-light: #51694d;
$custom-dark: #000000;
JSON
{
  "hex": "#0d310c",
  "rgb": {
    "r": 13,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 118.378,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.27746,
    "c": 0.07462,
    "h": 142.8
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#0D310C
secondary
#6B2C6D
accent
#44E4DF
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0D310C

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

Preview Lab → · Contrast checker → · Palette generator →

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