#31380F#31380F

#31380F is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.4% C 0.062 H 118.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#31380F
RGBrgb(49, 56, 15)
HSLhsl(70, 58%, 14%)
HSVhsv(70, 73%, 22%)
CMYKcmyk(12.5%, 0%, 73.2%, 78%)
CIE-LABlab(22.00, -9.98, 23.85)
CIE-LCHlch(22.00, 25.86, 112.71°)
OKLaboklab(32.42% -0.0292 0.0545)
OKLCHoklch(32.42% 0.062 118.2)
XYZxyz(2.7671, 3.5158, 0.9847)
Luminance0.0352 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31380F #160F38
analogous
#382B0F #31380F #1D380F
triadic
#31380F #0F3138 #380F31
tetradic
#31380F #0F382B #160F38 #380F1D
square
#31380F #0F382B #160F38 #380F1D
split-complementary
#31380F #0F1D38 #2B0F38
monochromatic
#151806 #151806 #31380F #5B681C #859929

Accessibility & contrast

On white

12.33
#31380F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31380F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31380F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31380F#FFFFFF#000000##FFFFFF
##31380F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C350A
Deuteranopia (green-blind)
#3B3512
Tritanopia (blue-blind)
#34352F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31380f;
/* rgb */ color: rgb(49, 56, 15);
/* oklch */ color: oklch(32.4% 0.062 118.2);
Tailwind
colors: {
  custom: {
    50: '#6a6e4f',
    500: '#31380f',
    950: '#000000',
  },
}
SCSS
$custom: #31380f;
$custom-light: #6a6e4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31380f",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 15
  },
  "hsl": {
    "h": 70.244,
    "s": 57.746,
    "l": 13.922
  },
  "oklch": {
    "l": 0.32416,
    "c": 0.06182,
    "h": 118.2
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#31380F
secondary
#3C3072
accent
#47E161
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #31380F

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

Preview Lab → · Contrast checker → · Palette generator →

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