#313F04#313F04

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

Color values

HEX#313F04
RGBrgb(49, 63, 4)
HSLhsl(74, 88%, 13%)
HSVhsv(74, 94%, 25%)
CMYKcmyk(22.2%, 0%, 93.7%, 75.3%)
CIE-LABlab(24.38, -14.86, 31.05)
CIE-LCHlch(24.38, 34.43, 115.58°)
OKLaboklab(34.3% -0.0439 0.0677)
OKLCHoklch(34.3% 0.081 123)
XYZxyz(3.0661, 4.2167, 0.7672)
Luminance0.0422 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F04 #12043F
analogous
#3F2F04 #313F04 #133F04
triadic
#313F04 #04313F #3F0431
tetradic
#313F04 #043F2F #12043F #3F0413
square
#313F04 #043F2F #12043F #3F0413
split-complementary
#313F04 #04133F #2F043F
monochromatic
#161D02 #161D02 #313F04 #5E7908 #8BB20B

Accessibility & contrast

On white

11.39
#313F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#313F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F04
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F04#FFFFFF#000000##FFFFFF
##313F041.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#423A0A
Tritanopia (blue-blind)
#343B34
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f04;
/* rgb */ color: rgb(49, 63, 4);
/* oklch */ color: oklch(34.3% 0.081 123.0);
Tailwind
colors: {
  custom: {
    50: '#6c744b',
    500: '#313f04',
    950: '#000000',
  },
}
SCSS
$custom: #313f04;
$custom-light: #6c744b;
$custom-dark: #000000;
JSON
{
  "hex": "#313f04",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 4
  },
  "hsl": {
    "h": 74.237,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.0807,
    "h": 123
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#313F04
secondary
#361E80
accent
#2AFE5C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313F04

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

Preview Lab → · Contrast checker → · Palette generator →

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