#313E0C#313E0C

#313E0C is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 34.1% C 0.073 H 123.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#313E0C
RGBrgb(49, 62, 12)
HSLhsl(76, 68%, 15%)
HSVhsv(76, 81%, 24%)
CMYKcmyk(21%, 0%, 80.6%, 75.7%)
CIE-LABlab(24.08, -13.77, 27.46)
CIE-LCHlch(24.08, 30.72, 116.63°)
OKLaboklab(34.08% -0.0401 0.0615)
OKLCHoklch(34.08% 0.073 123.1)
XYZxyz(3.0556, 4.1247, 0.9829)
Luminance0.0413 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E0C #190C3E
analogous
#3E320C #313E0C #183E0C
triadic
#313E0C #0C313E #3E0C31
tetradic
#313E0C #0C3E32 #190C3E #3E0C18
square
#313E0C #0C3E32 #190C3E #3E0C18
split-complementary
#313E0C #0C183E #320C3E
monochromatic
#141A05 #141A05 #313E0C #5A7116 #82A520

Accessibility & contrast

On white

11.51
#313E0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313E0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E0C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E0C#FFFFFF#000000##FFFFFF
##313E0C1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A05
Deuteranopia (green-blind)
#403910
Tritanopia (blue-blind)
#343A34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313e0c;
/* rgb */ color: rgb(49, 62, 12);
/* oklch */ color: oklch(34.1% 0.073 123.1);
Tailwind
colors: {
  custom: {
    50: '#6b734e',
    500: '#313e0c',
    950: '#000000',
  },
}
SCSS
$custom: #313e0c;
$custom-light: #6b734e;
$custom-dark: #000000;
JSON
{
  "hex": "#313e0c",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 12
  },
  "hsl": {
    "h": 75.6,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.34082,
    "c": 0.07342,
    "h": 123.1
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#313E0C
secondary
#402C7A
accent
#3DEA6A
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313E0C

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

Preview Lab → · Contrast checker → · Palette generator →

#313E0C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva