#1F2A01#1F2A01

#1F2A01 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.5% C 0.064 H 123.7°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#1F2A01
RGBrgb(31, 42, 1)
HSLhsl(76, 95%, 8%)
HSVhsv(76, 98%, 16%)
CMYKcmyk(26.2%, 0%, 97.6%, 83.5%)
CIE-LABlab(15.22, -12.05, 21.50)
CIE-LCHlch(15.22, 24.65, 119.26°)
OKLaboklab(26.51% -0.0356 0.0533)
OKLCHoklch(26.51% 0.064 123.7)
XYZxyz(1.3985, 1.9494, 0.3313)
Luminance0.0195 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A01 #0C012A
analogous
#2A2001 #1F2A01 #0A2A01
triadic
#1F2A01 #011F2A #2A011F
tetradic
#1F2A01 #012A20 #0C012A #2A010A
square
#1F2A01 #012A20 #0C012A #2A010A
split-complementary
#1F2A01 #010A2A #20012A
monochromatic
#161E01 #161E01 #1F2A01 #4B6602 #77A204

Accessibility & contrast

On white

15.11
#1F2A01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F2A01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A01
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A01#FFFFFF#000000##FFFFFF
##1F2A011.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2600
Deuteranopia (green-blind)
#2C2604
Tritanopia (blue-blind)
#212722
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f2a01;
/* rgb */ color: rgb(31, 42, 1);
/* oklch */ color: oklch(26.5% 0.064 123.7);
Tailwind
colors: {
  custom: {
    50: '#5b6347',
    500: '#1f2a01',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a01;
$custom-light: #5b6347;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a01",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 1
  },
  "hsl": {
    "h": 76.098,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.26506,
    "c": 0.06412,
    "h": 123.7
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#1F2A01
secondary
#2F1670
accent
#29FF62
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2A01

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

Preview Lab → · Contrast checker → · Palette generator →

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