#1F2C04#1F2C04

#1F2C04 is a dark, moderate yellow-green. Relative luminance 0.021; OKLCH L 27.2% C 0.064 H 126.0°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#1F2C04
RGBrgb(31, 44, 4)
HSLhsl(80, 83%, 9%)
HSVhsv(80, 91%, 17%)
CMYKcmyk(29.5%, 0%, 90.9%, 82.7%)
CIE-LABlab(16.01, -12.90, 21.28)
CIE-LCHlch(16.01, 24.89, 121.23°)
OKLaboklab(27.16% -0.0374 0.0514)
OKLCHoklch(27.16% 0.064 126)
XYZxyz(1.4877, 2.1014, 0.4421)
Luminance0.0210 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C04 #11042C
analogous
#2C2504 #1F2C04 #0B2C04
triadic
#1F2C04 #041F2C #2C041F
tetradic
#1F2C04 #042C25 #11042C #2C040B
square
#1F2C04 #042C25 #11042C #2C040B
split-complementary
#1F2C04 #040B2C #25042C
monochromatic
#141C03 #141C03 #1F2C04 #476409 #6E9C0E

Accessibility & contrast

On white

14.79
#1F2C04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F2C04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C04
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C04#FFFFFF#000000##FFFFFF
##1F2C041.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2800
Deuteranopia (green-blind)
#2D2807
Tritanopia (blue-blind)
#212924
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f2c04;
/* rgb */ color: rgb(31, 44, 4);
/* oklch */ color: oklch(27.2% 0.064 126.0);
Tailwind
colors: {
  custom: {
    50: '#5c6548',
    500: '#1f2c04',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c04;
$custom-light: #5c6548;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c04",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 4
  },
  "hsl": {
    "h": 79.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.27158,
    "c": 0.06355,
    "h": 126
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#1F2C04
secondary
#381D6F
accent
#2EFA70
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040500
muted
#797A77

Preview Lab

Preview with #1F2C04

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

Preview Lab → · Contrast checker → · Palette generator →

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