#313B02#313B02

#313B02 is a dark, moderate yellow-green. Relative luminance 0.038; OKLCH L 33.1% C 0.077 H 119.9°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#313B02
RGBrgb(49, 59, 2)
HSLhsl(71, 93%, 12%)
HSVhsv(71, 97%, 23%)
CMYKcmyk(16.9%, 0%, 96.6%, 76.9%)
CIE-LABlab(22.95, -12.70, 30.44)
CIE-LCHlch(22.95, 32.98, 112.65°)
OKLaboklab(33.15% -0.0383 0.0666)
OKLCHoklch(33.15% 0.077 119.9)
XYZxyz(2.8416, 3.7853, 0.6384)
Luminance0.0379 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B02 #0C023B
analogous
#3B2902 #313B02 #153B02
triadic
#313B02 #02313B #3B0231
tetradic
#313B02 #023B29 #0C023B #3B0215
square
#313B02 #023B29 #0C023B #3B0215
split-complementary
#313B02 #02153B #29023B
monochromatic
#191E01 #191E01 #313B02 #627604 #93B106

Accessibility & contrast

On white

11.95
#313B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#313B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B02
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B02#FFFFFF#000000##FFFFFF
##313B021.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403700
Deuteranopia (green-blind)
#3E3707
Tritanopia (blue-blind)
#353731
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b02;
/* rgb */ color: rgb(49, 59, 2);
/* oklch */ color: oklch(33.1% 0.077 119.9);
Tailwind
colors: {
  custom: {
    50: '#6b7049',
    500: '#313b02',
    950: '#000000',
  },
}
SCSS
$custom: #313b02;
$custom-light: #6b7049;
$custom-dark: #000000;
JSON
{
  "hex": "#313b02",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 2
  },
  "hsl": {
    "h": 70.526,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.07681,
    "h": 119.9
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#313B02
secondary
#2C1A7E
accent
#29FF4E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313B02

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

Preview Lab → · Contrast checker → · Palette generator →

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