#1F2A02#1F2A02

#1F2A02 is a dark, moderate yellow-green. Relative luminance 0.020; OKLCH L 26.5% C 0.063 H 123.9°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#1F2A02
RGBrgb(31, 42, 2)
HSLhsl(77, 91%, 9%)
HSVhsv(77, 95%, 16%)
CMYKcmyk(26.2%, 0%, 95.2%, 83.5%)
CIE-LABlab(15.23, -11.94, 21.11)
CIE-LCHlch(15.23, 24.25, 119.48°)
OKLaboklab(26.52% -0.0351 0.0522)
OKLCHoklch(26.52% 0.063 123.9)
XYZxyz(1.4040, 1.9516, 0.3601)
Luminance0.0195 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A02 #0D022A
analogous
#2A2102 #1F2A02 #0B2A02
triadic
#1F2A02 #021F2A #2A021F
tetradic
#1F2A02 #022A21 #0D022A #2A020B
square
#1F2A02 #022A21 #0D022A #2A020B
split-complementary
#1F2A02 #020B2A #21022A
monochromatic
#161D01 #161D01 #1F2A02 #4A6405 #759F08

Accessibility & contrast

On white

15.10
#1F2A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A02
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A02#FFFFFF#000000##FFFFFF
##1F2A021.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2a02;
/* rgb */ color: rgb(31, 42, 2);
/* oklch */ color: oklch(26.5% 0.063 123.9);
Tailwind
colors: {
  custom: {
    50: '#5b6347',
    500: '#1f2a02',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a02;
$custom-light: #5b6347;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a02",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 76.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.26519,
    "c": 0.06287,
    "h": 123.9
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#1F2A02
secondary
#30196F
accent
#29FF64
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2A02

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

Preview Lab → · Contrast checker → · Palette generator →

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