#1F310C#1F310C

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

Color values

HEX#1F310C
RGBrgb(31, 49, 12)
HSLhsl(89, 61%, 12%)
HSVhsv(89, 76%, 19%)
CMYKcmyk(36.7%, 0%, 75.5%, 80.8%)
CIE-LABlab(17.98, -14.96, 20.39)
CIE-LCHlch(17.98, 25.29, 126.27°)
OKLaboklab(28.79% -0.042 0.0477)
OKLCHoklch(28.79% 0.064 131.4)
XYZxyz(1.7297, 2.5144, 0.7420)
Luminance0.0251 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F310C #1E0C31
analogous
#31310C #1F310C #0D310C
triadic
#1F310C #0C1F31 #310C1F
tetradic
#1F310C #0C3131 #1E0C31 #310C0D
square
#1F310C #0C3131 #1E0C31 #310C0D
split-complementary
#1F310C #0C0D31 #310C31
monochromatic
#101906 #101906 #1F310C #3E6218 #5D9324

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F310C#FFFFFF#000000##FFFFFF
##1F310C1.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)
#332D08
Deuteranopia (green-blind)
#312B0F
Tritanopia (blue-blind)
#202F29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f310c;
/* rgb */ color: rgb(31, 49, 12);
/* oklch */ color: oklch(28.8% 0.064 131.4);
Tailwind
colors: {
  custom: {
    50: '#5c694d',
    500: '#1f310c',
    950: '#000000',
  },
}
SCSS
$custom: #1f310c;
$custom-light: #5c694d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f310c",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 89.189,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.28788,
    "c": 0.06354,
    "h": 131.4
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#1F310C
secondary
#4C2C6D
accent
#44E492
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F310C

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

Preview Lab → · Contrast checker → · Palette generator →

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