#313F05#313F05

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

Color values

HEX#313F05
RGBrgb(49, 63, 5)
HSLhsl(74, 85%, 13%)
HSVhsv(74, 92%, 25%)
CMYKcmyk(22.2%, 0%, 92.1%, 75.3%)
CIE-LABlab(24.38, -14.80, 30.65)
CIE-LCHlch(24.38, 34.04, 115.77°)
OKLaboklab(34.31% -0.0436 0.067)
OKLCHoklch(34.31% 0.08 123.1)
XYZxyz(3.0716, 4.2189, 0.7961)
Luminance0.0422 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F05 #13053F
analogous
#3F3005 #313F05 #143F05
triadic
#313F05 #05313F #3F0531
tetradic
#313F05 #053F30 #13053F #3F0514
square
#313F05 #053F30 #13053F #3F0514
split-complementary
#313F05 #05143F #30053F
monochromatic
#161C02 #161C02 #313F05 #5D7809 #89B00E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313F05#FFFFFF#000000##FFFFFF
##313F051.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)
#423A0B
Tritanopia (blue-blind)
#343B35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f05;
/* rgb */ color: rgb(49, 63, 5);
/* oklch */ color: oklch(34.3% 0.080 123.1);
Tailwind
colors: {
  custom: {
    50: '#6b744b',
    500: '#313f05',
    950: '#000000',
  },
}
SCSS
$custom: #313f05;
$custom-light: #6b744b;
$custom-dark: #000000;
JSON
{
  "hex": "#313f05",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 5
  },
  "hsl": {
    "h": 74.483,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34311,
    "c": 0.07997,
    "h": 123.1
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#313F05
secondary
#372080
accent
#2CFC5E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313F05

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

Preview Lab → · Contrast checker → · Palette generator →

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