#313F07#313F07

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

Color values

HEX#313F07
RGBrgb(49, 63, 7)
HSLhsl(75, 80%, 14%)
HSVhsv(75, 89%, 25%)
CMYKcmyk(22.2%, 0%, 88.9%, 75.3%)
CIE-LABlab(24.40, -14.67, 29.85)
CIE-LCHlch(24.40, 33.26, 116.17°)
OKLaboklab(34.33% -0.0431 0.0657)
OKLCHoklch(34.33% 0.079 123.3)
XYZxyz(3.0825, 4.2233, 0.8538)
Luminance0.0422 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F07 #15073F
analogous
#3F3107 #313F07 #153F07
triadic
#313F07 #07313F #3F0731
tetradic
#313F07 #073F31 #15073F #3F0715
square
#313F07 #073F31 #15073F #3F0715
split-complementary
#313F07 #07153F #31073F
monochromatic
#151C03 #151C03 #313F07 #5C760D #87AD13

Accessibility & contrast

On white

11.38
#313F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F07
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F07#FFFFFF#000000##FFFFFF
##313F071.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#413A0C
Tritanopia (blue-blind)
#343B35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f07;
/* rgb */ color: rgb(49, 63, 7);
/* oklch */ color: oklch(34.3% 0.079 123.3);
Tailwind
colors: {
  custom: {
    50: '#6b744c',
    500: '#313f07',
    950: '#000000',
  },
}
SCSS
$custom: #313f07;
$custom-light: #6b744c;
$custom-dark: #000000;
JSON
{
  "hex": "#313f07",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 7
  },
  "hsl": {
    "h": 75,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.34326,
    "c": 0.07852,
    "h": 123.3
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#313F07
secondary
#3A247E
accent
#31F663
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313F07

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

Preview Lab → · Contrast checker → · Palette generator →

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