#1F2803#1F2803

#1F2803 is a dark, muted yellow-green. Relative luminance 0.018; OKLCH L 25.9% C 0.059 H 122.3°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#1F2803
RGBrgb(31, 40, 3)
HSLhsl(75, 86%, 8%)
HSVhsv(75, 93%, 16%)
CMYKcmyk(22.5%, 0%, 92.5%, 84.3%)
CIE-LABlab(14.49, -10.61, 19.75)
CIE-LCHlch(14.49, 22.42, 118.26°)
OKLaboklab(25.92% -0.0313 0.0496)
OKLCHoklch(25.92% 0.059 122.3)
XYZxyz(1.3403, 1.8155, 0.3659)
Luminance0.0181 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2803 #0C0328
analogous
#281E03 #1F2803 #0C2803
triadic
#1F2803 #031F28 #28031F
tetradic
#1F2803 #03281E #0C0328 #28030C
square
#1F2803 #03281E #0C0328 #28030C
split-complementary
#1F2803 #030C28 #1E0328
monochromatic
#161C02 #161C02 #1F2803 #4B6107 #779A0C

Accessibility & contrast

On white

15.41
#1F2803 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2803
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2803#FFFFFF#000000##FFFFFF
##1F28031.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2803;
/* rgb */ color: rgb(31, 40, 3);
/* oklch */ color: oklch(25.9% 0.059 122.3);
Tailwind
colors: {
  custom: {
    50: '#5b6148',
    500: '#1f2803',
    950: '#000000',
  },
}
SCSS
$custom: #1f2803;
$custom-light: #5b6148;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2803",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 3
  },
  "hsl": {
    "h": 74.595,
    "s": 86.047,
    "l": 8.431
  },
  "oklch": {
    "l": 0.25921,
    "c": 0.05862,
    "h": 122.3
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#1F2803
secondary
#2F1B6C
accent
#2CFC5E
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2803

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

Preview Lab → · Contrast checker → · Palette generator →

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