#313A04#313A04

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

Color values

HEX#313A04
RGBrgb(49, 58, 4)
HSLhsl(70, 87%, 12%)
HSVhsv(70, 93%, 23%)
CMYKcmyk(15.5%, 0%, 93.1%, 77.3%)
CIE-LABlab(22.61, -11.98, 29.27)
CIE-LCHlch(22.61, 31.63, 112.25°)
OKLaboklab(32.88% -0.0361 0.0644)
OKLCHoklch(32.88% 0.074 119.2)
XYZxyz(2.8017, 3.6879, 0.6791)
Luminance0.0369 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A04 #0D043A
analogous
#3A2804 #313A04 #163A04
triadic
#313A04 #04313A #3A0431
tetradic
#313A04 #043A28 #0D043A #3A0416
square
#313A04 #043A28 #0D043A #3A0416
split-complementary
#313A04 #04163A #28043A
monochromatic
#181D02 #181D02 #313A04 #617308 #92AD0C

Accessibility & contrast

On white

12.09
#313A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A04
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A04#FFFFFF#000000##FFFFFF
##313A041.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313a04;
/* rgb */ color: rgb(49, 58, 4);
/* oklch */ color: oklch(32.9% 0.074 119.2);
Tailwind
colors: {
  custom: {
    50: '#6b704a',
    500: '#313a04',
    950: '#000000',
  },
}
SCSS
$custom: #313a04;
$custom-light: #6b704a;
$custom-dark: #000000;
JSON
{
  "hex": "#313a04",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 4
  },
  "hsl": {
    "h": 70,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.32878,
    "c": 0.07385,
    "h": 119.2
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#313A04
secondary
#2E1E7C
accent
#2BFD4E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A04

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

Preview Lab → · Contrast checker → · Palette generator →

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