#313A05#313A05

#313A05 is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 32.9% C 0.073 H 119.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#313A05
RGBrgb(49, 58, 5)
HSLhsl(70, 84%, 12%)
HSVhsv(70, 91%, 23%)
CMYKcmyk(15.5%, 0%, 91.4%, 77.3%)
CIE-LABlab(22.62, -11.91, 28.87)
CIE-LCHlch(22.62, 31.23, 112.42°)
OKLaboklab(32.89% -0.0357 0.0637)
OKLCHoklch(32.89% 0.073 119.3)
XYZxyz(2.8071, 3.6901, 0.7079)
Luminance0.0369 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A05 #0E053A
analogous
#3A2905 #313A05 #163A05
triadic
#313A05 #05313A #3A0531
tetradic
#313A05 #053A29 #0E053A #3A0516
square
#313A05 #053A29 #0E053A #3A0516
split-complementary
#313A05 #05163A #29053A
monochromatic
#181C02 #181C02 #313A05 #61720A #90AB0F

Accessibility & contrast

On white

12.08
#313A05 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313A05 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A05
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A05#FFFFFF#000000##FFFFFF
##313A051.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3600
Deuteranopia (green-blind)
#3D360A
Tritanopia (blue-blind)
#353630
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a05;
/* rgb */ color: rgb(49, 58, 5);
/* oklch */ color: oklch(32.9% 0.073 119.3);
Tailwind
colors: {
  custom: {
    50: '#6b704a',
    500: '#313a05',
    950: '#000000',
  },
}
SCSS
$custom: #313a05;
$custom-light: #6b704a;
$custom-dark: #000000;
JSON
{
  "hex": "#313a05",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 5
  },
  "hsl": {
    "h": 70.189,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.32887,
    "c": 0.07304,
    "h": 119.3
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#313A05
secondary
#2F207B
accent
#2DFA50
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A05

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

Preview Lab → · Contrast checker → · Palette generator →

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