#313E07#313E07

#313E07 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 34.0% C 0.077 H 122.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#313E07
RGBrgb(49, 62, 7)
HSLhsl(74, 80%, 14%)
HSVhsv(74, 89%, 24%)
CMYKcmyk(21%, 0%, 88.7%, 75.7%)
CIE-LABlab(24.04, -14.10, 29.50)
CIE-LCHlch(24.04, 32.70, 115.55°)
OKLaboklab(34.04% -0.0415 0.065)
OKLCHoklch(34.04% 0.077 122.6)
XYZxyz(3.0276, 4.1135, 0.8355)
Luminance0.0411 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E07 #14073E
analogous
#3E2F07 #313E07 #153E07
triadic
#313E07 #07313E #3E0731
tetradic
#313E07 #073E2F #14073E #3E0715
square
#313E07 #073E2F #14073E #3E0715
split-complementary
#313E07 #07153E #2F073E
monochromatic
#161B03 #161B03 #313E07 #5C750D #88AC13

Accessibility & contrast

On white

11.52
#313E07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E07
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E07#FFFFFF#000000##FFFFFF
##313E071.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423900
Deuteranopia (green-blind)
#41390C
Tritanopia (blue-blind)
#343A34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313e07;
/* rgb */ color: rgb(49, 62, 7);
/* oklch */ color: oklch(34.0% 0.077 122.6);
Tailwind
colors: {
  custom: {
    50: '#6b734c',
    500: '#313e07',
    950: '#000000',
  },
}
SCSS
$custom: #313e07;
$custom-light: #6b734c;
$custom-dark: #000000;
JSON
{
  "hex": "#313e07",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 7
  },
  "hsl": {
    "h": 74.182,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34041,
    "c": 0.07709,
    "h": 122.6
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#313E07
secondary
#39247D
accent
#32F660
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313E07

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

Preview Lab → · Contrast checker → · Palette generator →

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