#313E0A#313E0A

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

Color values

HEX#313E0A
RGBrgb(49, 62, 10)
HSLhsl(75, 72%, 14%)
HSVhsv(75, 84%, 24%)
CMYKcmyk(21%, 0%, 83.9%, 75.7%)
CIE-LABlab(24.06, -13.91, 28.30)
CIE-LCHlch(24.06, 31.54, 116.17°)
OKLaboklab(34.07% -0.0407 0.0629)
OKLCHoklch(34.07% 0.075 122.9)
XYZxyz(3.0441, 4.1201, 0.9220)
Luminance0.0412 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E0A #170A3E
analogous
#3E310A #313E0A #173E0A
triadic
#313E0A #0A313E #3E0A31
tetradic
#313E0A #0A3E31 #170A3E #3E0A17
square
#313E0A #0A3E31 #170A3E #3E0A17
split-complementary
#313E0A #0A173E #310A3E
monochromatic
#151A04 #151A04 #313E0A #5B7313 #84A71B

Accessibility & contrast

On white

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

On black

1.82
#313E0A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##313E0A#FFFFFF#000000##FFFFFF
##313E0A1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A02
Deuteranopia (green-blind)
#40390F
Tritanopia (blue-blind)
#343A34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313e0a;
/* rgb */ color: rgb(49, 62, 10);
/* oklch */ color: oklch(34.1% 0.075 122.9);
Tailwind
colors: {
  custom: {
    50: '#6b734d',
    500: '#313e0a',
    950: '#000000',
  },
}
SCSS
$custom: #313e0a;
$custom-light: #6b734d;
$custom-dark: #000000;
JSON
{
  "hex": "#313e0a",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 10
  },
  "hsl": {
    "h": 75,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.07492,
    "h": 122.9
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#313E0A
secondary
#3D287B
accent
#39EF66
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313E0A

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

Preview Lab → · Contrast checker → · Palette generator →

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