#1F310A#1F310A

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

Color values

HEX#1F310A
RGBrgb(31, 49, 10)
HSLhsl(88, 66%, 12%)
HSVhsv(88, 80%, 19%)
CMYKcmyk(36.7%, 0%, 79.6%, 80.8%)
CIE-LABlab(17.96, -15.17, 21.23)
CIE-LCHlch(17.96, 26.09, 125.54°)
OKLaboklab(28.76% -0.0428 0.0495)
OKLCHoklch(28.76% 0.065 130.8)
XYZxyz(1.7182, 2.5098, 0.6810)
Luminance0.0251 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F310A #1C0A31
analogous
#31300A #1F310A #0C310A
triadic
#1F310A #0A1F31 #310A1F
tetradic
#1F310A #0A3130 #1C0A31 #310A0C
square
#1F310A #0A3130 #1C0A31 #310A0C
split-complementary
#1F310A #0A0C31 #300A31
monochromatic
#101905 #101905 #1F310A #3F6414 #5F971F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F310A#FFFFFF#000000##FFFFFF
##1F310A1.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)
#342D05
Deuteranopia (green-blind)
#312B0D
Tritanopia (blue-blind)
#202F29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f310a;
/* rgb */ color: rgb(31, 49, 10);
/* oklch */ color: oklch(28.8% 0.065 130.8);
Tailwind
colors: {
  custom: {
    50: '#5c694c',
    500: '#1f310a',
    950: '#000000',
  },
}
SCSS
$custom: #1f310a;
$custom-light: #5c694c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f310a",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 87.692,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.28764,
    "c": 0.06545,
    "h": 130.8
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#1F310A
secondary
#49296E
accent
#3FE98D
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F310A

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

Preview Lab → · Contrast checker → · Palette generator →

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