#1F2D01#1F2D01

#1F2D01 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.4% C 0.068 H 126.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2D01
RGBrgb(31, 45, 1)
HSLhsl(79, 96%, 9%)
HSVhsv(79, 98%, 18%)
CMYKcmyk(31.1%, 0%, 97.8%, 82.4%)
CIE-LABlab(16.36, -13.80, 22.94)
CIE-LCHlch(16.36, 26.77, 121.03°)
OKLaboklab(27.43% -0.0403 0.0554)
OKLCHoklch(27.43% 0.068 126.1)
XYZxyz(1.5090, 2.1702, 0.3681)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D01 #0F012D
analogous
#2D2501 #1F2D01 #092D01
triadic
#1F2D01 #011F2D #2D011F
tetradic
#1F2D01 #012D25 #0F012D #2D0109
square
#1F2D01 #012D25 #0F012D #2D0109
split-complementary
#1F2D01 #01092D #25012D
monochromatic
#151E01 #151E01 #1F2D01 #486902 #71A504

Accessibility & contrast

On white

14.64
#1F2D01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F2D01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D01
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D01#FFFFFF#000000##FFFFFF
##1F2D011.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2E2804
Tritanopia (blue-blind)
#212A25
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f2d01;
/* rgb */ color: rgb(31, 45, 1);
/* oklch */ color: oklch(27.4% 0.068 126.1);
Tailwind
colors: {
  custom: {
    50: '#5c6647',
    500: '#1f2d01',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d01;
$custom-light: #5c6647;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d01",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 1
  },
  "hsl": {
    "h": 79.091,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.27429,
    "c": 0.06848,
    "h": 126.1
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#1F2D01
secondary
#341773
accent
#29FF6D
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040500
muted
#797A77

Preview Lab

Preview with #1F2D01

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

Preview Lab → · Contrast checker → · Palette generator →

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