#1F2F04#1F2F04

#1F2F04 is a dark, moderate yellow-green. Relative luminance 0.023; OKLCH L 28.1% C 0.068 H 128.1°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2F04
RGBrgb(31, 47, 4)
HSLhsl(82, 84%, 10%)
HSVhsv(82, 91%, 18%)
CMYKcmyk(34%, 0%, 91.5%, 81.6%)
CIE-LABlab(17.15, -14.64, 22.69)
CIE-LCHlch(17.15, 27.00, 122.83°)
OKLaboklab(28.08% -0.0421 0.0536)
OKLCHoklch(28.08% 0.068 128.1)
XYZxyz(1.6035, 2.3331, 0.4807)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F04 #14042F
analogous
#2F2A04 #1F2F04 #092F04
triadic
#1F2F04 #041F2F #2F041F
tetradic
#1F2F04 #042F2A #14042F #2F0409
square
#1F2F04 #042F2A #14042F #2F0409
split-complementary
#1F2F04 #04092F #2A042F
monochromatic
#131C02 #131C02 #1F2F04 #446709 #69A00E

Accessibility & contrast

On white

14.32
#1F2F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F2F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F04
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F04#FFFFFF#000000##FFFFFF
##1F2F041.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B00
Deuteranopia (green-blind)
#302A07
Tritanopia (blue-blind)
#202C27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f2f04;
/* rgb */ color: rgb(31, 47, 4);
/* oklch */ color: oklch(28.1% 0.068 128.1);
Tailwind
colors: {
  custom: {
    50: '#5c6749',
    500: '#1f2f04',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f04;
$custom-light: #5c6749;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f04",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 82.326,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.28081,
    "c": 0.06815,
    "h": 128.1
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#1F2F04
secondary
#3D1D72
accent
#2DFB7A
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F2F04

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

Preview Lab → · Contrast checker → · Palette generator →

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