#1F310D#1F310D

#1F310D is a dark, moderate yellow-green. Relative luminance 0.025; OKLCH L 28.8% C 0.063 H 131.7°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#1F310D
RGBrgb(31, 49, 13)
HSLhsl(90, 58%, 12%)
HSVhsv(90, 73%, 19%)
CMYKcmyk(36.7%, 0%, 73.5%, 80.8%)
CIE-LABlab(17.99, -14.85, 19.94)
CIE-LCHlch(17.99, 24.86, 126.68°)
OKLaboklab(28.8% -0.0416 0.0467)
OKLCHoklch(28.8% 0.063 131.7)
XYZxyz(1.7360, 2.5169, 0.7750)
Luminance0.0252 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F310D #1F0D31
analogous
#31310D #1F310D #0D310D
triadic
#1F310D #0D1F31 #310D1F
tetradic
#1F310D #0D3131 #1F0D31 #310D0D
square
#1F310D #0D3131 #1F0D31 #310D0D
split-complementary
#1F310D #0D0D31 #310D31
monochromatic
#0F1806 #0F1806 #1F310D #3E611A #5C9227

Accessibility & contrast

On white

13.97
#1F310D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F310D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F310D
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F310D#FFFFFF#000000##FFFFFF
##1F310D1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D09
Deuteranopia (green-blind)
#312C10
Tritanopia (blue-blind)
#202F29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f310d;
/* rgb */ color: rgb(31, 49, 13);
/* oklch */ color: oklch(28.8% 0.063 131.7);
Tailwind
colors: {
  custom: {
    50: '#5c694d',
    500: '#1f310d',
    950: '#000000',
  },
}
SCSS
$custom: #1f310d;
$custom-light: #5c694d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f310d",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 13
  },
  "hsl": {
    "h": 90,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.28801,
    "c": 0.06253,
    "h": 131.7
  },
  "luminance": 0.02517
}

Semantic roles & 50–950 ramp

primary
#1F310D
secondary
#4D2E6C
accent
#47E194
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F310D

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

Preview Lab → · Contrast checker → · Palette generator →

#1F310D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva