#31400F#31400F

#31400F is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.074 H 124.9°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#31400F
RGBrgb(49, 64, 15)
HSLhsl(78, 62%, 15%)
HSVhsv(78, 77%, 25%)
CMYKcmyk(23.4%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.81, -14.68, 26.81)
CIE-LCHlch(24.81, 30.57, 118.71°)
OKLaboklab(34.68% -0.0423 0.0607)
OKLCHoklch(34.68% 0.074 124.9)
XYZxyz(3.1863, 4.3542, 1.1244)
Luminance0.0435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31400F #1E0F40
analogous
#40360F #31400F #19400F
triadic
#31400F #0F3140 #400F31
tetradic
#31400F #0F4036 #1E0F40 #400F19
square
#31400F #0F4036 #1E0F40 #400F19
split-complementary
#31400F #0F1940 #360F40
monochromatic
#131906 #131906 #31400F #57721B #7DA326

Accessibility & contrast

On white

11.23
#31400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31400F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31400F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31400F#FFFFFF#000000##FFFFFF
##31400F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B08
Deuteranopia (green-blind)
#423B13
Tritanopia (blue-blind)
#343D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31400f;
/* rgb */ color: rgb(49, 64, 15);
/* oklch */ color: oklch(34.7% 0.074 124.9);
Tailwind
colors: {
  custom: {
    50: '#6b7450',
    500: '#31400f',
    950: '#000000',
  },
}
SCSS
$custom: #31400f;
$custom-light: #6b7450;
$custom-dark: #000000;
JSON
{
  "hex": "#31400f",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 78.367,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.07397,
    "h": 124.9
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#31400F
secondary
#47307A
accent
#43E574
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31400F

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

Preview Lab → · Contrast checker → · Palette generator →

#31400F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva