#1F310B#1F310B

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

Color values

HEX#1F310B
RGBrgb(31, 49, 11)
HSLhsl(88, 63%, 12%)
HSVhsv(88, 78%, 19%)
CMYKcmyk(36.7%, 0%, 77.6%, 80.8%)
CIE-LABlab(17.97, -15.07, 20.82)
CIE-LCHlch(17.97, 25.70, 125.89°)
OKLaboklab(28.78% -0.0424 0.0486)
OKLCHoklch(28.78% 0.065 131.1)
XYZxyz(1.7238, 2.5120, 0.7106)
Luminance0.0251 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F310B #1D0B31
analogous
#31300B #1F310B #0C310B
triadic
#1F310B #0B1F31 #310B1F
tetradic
#1F310B #0B3130 #1D0B31 #310B0C
square
#1F310B #0B3130 #1D0B31 #310B0C
split-complementary
#1F310B #0B0C31 #300B31
monochromatic
#101906 #101906 #1F310B #3F6316 #5E9521

Accessibility & contrast

On white

13.98
#1F310B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F310B
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F310B#FFFFFF#000000##FFFFFF
##1F310B1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D07
Deuteranopia (green-blind)
#312B0E
Tritanopia (blue-blind)
#202F29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f310b;
/* rgb */ color: rgb(31, 49, 11);
/* oklch */ color: oklch(28.8% 0.065 131.1);
Tailwind
colors: {
  custom: {
    50: '#5c694c',
    500: '#1f310b',
    950: '#000000',
  },
}
SCSS
$custom: #1f310b;
$custom-light: #5c694c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f310b",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 88.421,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.28776,
    "c": 0.06451,
    "h": 131.1
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#1F310B
secondary
#4A2A6E
accent
#41E690
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F310B

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

Preview Lab → · Contrast checker → · Palette generator →

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