#1F3101#1F3101

#1F3101 is a dark, moderate yellow-green. Relative luminance 0.025; OKLCH L 28.7% C 0.074 H 128.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#1F3101
RGBrgb(31, 49, 1)
HSLhsl(83, 96%, 10%)
HSVhsv(83, 98%, 19%)
CMYKcmyk(36.7%, 0%, 98%, 80.8%)
CIE-LABlab(17.87, -16.05, 24.79)
CIE-LCHlch(17.87, 29.53, 122.92°)
OKLaboklab(28.66% -0.0464 0.058)
OKLCHoklch(28.66% 0.074 128.6)
XYZxyz(1.6689, 2.4901, 0.4214)
Luminance0.0249 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3101 #130131
analogous
#312B01 #1F3101 #073101
triadic
#1F3101 #011F31 #31011F
tetradic
#1F3101 #01312B #130131 #310107
square
#1F3101 #01312B #130131 #310107
split-complementary
#1F3101 #010731 #2B0131
monochromatic
#131E01 #131E01 #1F3101 #456D02 #6BA903

Accessibility & contrast

On white

14.02
#1F3101 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3101
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3101#FFFFFF#000000##FFFFFF
##1F31011.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D00
Deuteranopia (green-blind)
#322B05
Tritanopia (blue-blind)
#202E28
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f3101;
/* rgb */ color: rgb(31, 49, 1);
/* oklch */ color: oklch(28.7% 0.074 128.6);
Tailwind
colors: {
  custom: {
    50: '#5c6947',
    500: '#1f3101',
    950: '#000000',
  },
}
SCSS
$custom: #1f3101;
$custom-light: #5c6947;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3101",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 1
  },
  "hsl": {
    "h": 82.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.28663,
    "c": 0.07427,
    "h": 128.6
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#1F3101
secondary
#3B1777
accent
#29FF79
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #1F3101

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

Preview Lab → · Contrast checker → · Palette generator →

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