#313F08#313F08

#313F08 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.3% C 0.078 H 123.4°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#313F08
RGBrgb(49, 63, 8)
HSLhsl(75, 77%, 14%)
HSVhsv(75, 87%, 25%)
CMYKcmyk(22.2%, 0%, 87.3%, 75.3%)
CIE-LABlab(24.40, -14.61, 29.45)
CIE-LCHlch(24.40, 32.87, 116.38°)
OKLaboklab(34.33% -0.0428 0.065)
OKLCHoklch(34.33% 0.078 123.4)
XYZxyz(3.0880, 4.2255, 0.8826)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F08 #16083F
analogous
#3F3208 #313F08 #163F08
triadic
#313F08 #08313F #3F0831
tetradic
#313F08 #083F32 #16083F #3F0816
square
#313F08 #083F32 #16083F #3F0816
split-complementary
#313F08 #08163F #32083F
monochromatic
#151B03 #151B03 #313F08 #5B750F #85AC16

Accessibility & contrast

On white

11.38
#313F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313F08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F08
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F08#FFFFFF#000000##FFFFFF
##313F081.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#413A0D
Tritanopia (blue-blind)
#343B35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f08;
/* rgb */ color: rgb(49, 63, 8);
/* oklch */ color: oklch(34.3% 0.078 123.4);
Tailwind
colors: {
  custom: {
    50: '#6b744d',
    500: '#313f08',
    950: '#000000',
  },
}
SCSS
$custom: #313f08;
$custom-light: #6b744d;
$custom-dark: #000000;
JSON
{
  "hex": "#313f08",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 8
  },
  "hsl": {
    "h": 75.273,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.34334,
    "c": 0.07779,
    "h": 123.4
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#313F08
secondary
#3C257E
accent
#34F465
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313F08

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

Preview Lab → · Contrast checker → · Palette generator →

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