#1F2801#1F2801

#1F2801 is a dark, moderate yellow-green. Relative luminance 0.018; OKLCH L 25.9% C 0.061 H 121.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#1F2801
RGBrgb(31, 40, 1)
HSLhsl(74, 95%, 8%)
HSVhsv(74, 98%, 16%)
CMYKcmyk(22.5%, 0%, 97.5%, 84.3%)
CIE-LABlab(14.46, -10.84, 20.53)
CIE-LCHlch(14.46, 23.21, 117.83°)
OKLaboklab(25.89% -0.0323 0.052)
OKLCHoklch(25.89% 0.061 121.9)
XYZxyz(1.3294, 1.8111, 0.3082)
Luminance0.0181 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2801 #0A0128
analogous
#281D01 #1F2801 #0B2801
triadic
#1F2801 #011F28 #28011F
tetradic
#1F2801 #01281D #0A0128 #28010B
square
#1F2801 #01281D #0A0128 #28010B
split-complementary
#1F2801 #010B28 #1D0128
monochromatic
#171E01 #171E01 #1F2801 #4D6402 #7C9F04

Accessibility & contrast

On white

15.42
#1F2801 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1F2801 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2801
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2801#FFFFFF#000000##FFFFFF
##1F28011.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2500
Deuteranopia (green-blind)
#2A2503
Tritanopia (blue-blind)
#212521
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f2801;
/* rgb */ color: rgb(31, 40, 1);
/* oklch */ color: oklch(25.9% 0.061 121.9);
Tailwind
colors: {
  custom: {
    50: '#5b6147',
    500: '#1f2801',
    950: '#000000',
  },
}
SCSS
$custom: #1f2801;
$custom-light: #5b6147;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2801",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 1
  },
  "hsl": {
    "h": 73.846,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.25894,
    "c": 0.06121,
    "h": 121.9
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#1F2801
secondary
#2B166F
accent
#29FF5A
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2801

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

Preview Lab → · Contrast checker → · Palette generator →

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