#1F2701#1F2701

#1F2701 is a dark, muted yellow-green. Relative luminance 0.017; OKLCH L 25.6% C 0.060 H 120.8°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2701
RGBrgb(31, 39, 1)
HSLhsl(73, 95%, 8%)
HSVhsv(73, 97%, 15%)
CMYKcmyk(20.5%, 0%, 97.4%, 84.7%)
CIE-LABlab(14.08, -10.22, 20.03)
CIE-LCHlch(14.08, 22.49, 117.03°)
OKLaboklab(25.59% -0.0306 0.0513)
OKLCHoklch(25.59% 0.06 120.8)
XYZxyz(1.2961, 1.7445, 0.2972)
Luminance0.0175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2701 #090127
analogous
#271C01 #1F2701 #0C2701
triadic
#1F2701 #011F27 #27011F
tetradic
#1F2701 #01271C #090127 #27010C
square
#1F2701 #01271C #090127 #27010C
split-complementary
#1F2701 #010C27 #1C0127
monochromatic
#181E01 #181E01 #1F2701 #4E6303 #7E9E04

Accessibility & contrast

On white

15.57
#1F2701 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F2701 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2701
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2701#FFFFFF#000000##FFFFFF
##1F27011.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2400
Deuteranopia (green-blind)
#292403
Tritanopia (blue-blind)
#212420
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f2701;
/* rgb */ color: rgb(31, 39, 1);
/* oklch */ color: oklch(25.6% 0.060 120.8);
Tailwind
colors: {
  custom: {
    50: '#5b6147',
    500: '#1f2701',
    950: '#000000',
  },
}
SCSS
$custom: #1f2701;
$custom-light: #5b6147;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2701",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 1
  },
  "hsl": {
    "h": 72.632,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.25589,
    "c": 0.05977,
    "h": 120.8
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#1F2701
secondary
#29166E
accent
#29FF56
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2701

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

Preview Lab → · Contrast checker → · Palette generator →

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