#1F2901#1F2901

#1F2901 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.2% C 0.063 H 122.8°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#1F2901
RGBrgb(31, 41, 1)
HSLhsl(75, 95%, 8%)
HSVhsv(75, 98%, 16%)
CMYKcmyk(24.4%, 0%, 97.6%, 83.9%)
CIE-LABlab(14.84, -11.45, 21.02)
CIE-LCHlch(14.84, 23.93, 118.57°)
OKLaboklab(26.2% -0.034 0.0527)
OKLCHoklch(26.2% 0.063 122.8)
XYZxyz(1.3635, 1.8794, 0.3196)
Luminance0.0188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2901 #0B0129
analogous
#291F01 #1F2901 #0B2901
triadic
#1F2901 #011F29 #29011F
tetradic
#1F2901 #01291F #0B0129 #29010B
square
#1F2901 #01291F #0B0129 #29010B
split-complementary
#1F2901 #010B29 #1F0129
monochromatic
#171E01 #171E01 #1F2901 #4C6502 #79A004

Accessibility & contrast

On white

15.26
#1F2901 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F2901 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2901
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2901#FFFFFF#000000##FFFFFF
##1F29011.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#2B2504
Tritanopia (blue-blind)
#212621
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f2901;
/* rgb */ color: rgb(31, 41, 1);
/* oklch */ color: oklch(26.2% 0.063 122.8);
Tailwind
colors: {
  custom: {
    50: '#5b6247',
    500: '#1f2901',
    950: '#000000',
  },
}
SCSS
$custom: #1f2901;
$custom-light: #5b6247;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2901",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 1
  },
  "hsl": {
    "h": 75,
    "s": 95.238,
    "l": 8.235
  },
  "oklch": {
    "l": 0.262,
    "c": 0.06266,
    "h": 122.8
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#1F2901
secondary
#2D166F
accent
#29FF5E
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2901

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

Preview Lab → · Contrast checker → · Palette generator →

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