#1B2A02#1B2A02

#1B2A02 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.2% C 0.065 H 128.0°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#1B2A02
RGBrgb(27, 42, 2)
HSLhsl(83, 91%, 9%)
HSVhsv(83, 95%, 16%)
CMYKcmyk(35.7%, 0%, 95.2%, 83.5%)
CIE-LABlab(14.92, -13.97, 20.64)
CIE-LCHlch(14.92, 24.93, 124.08°)
OKLaboklab(26.18% -0.0403 0.0515)
OKLCHoklch(26.18% 0.065 128)
XYZxyz(1.2909, 1.8933, 0.3548)
Luminance0.0189 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A02 #11022A
analogous
#2A2502 #1B2A02 #072A02
triadic
#1B2A02 #021B2A #2A021B
tetradic
#1B2A02 #022A25 #11022A #2A0207
square
#1B2A02 #022A25 #11022A #2A0207
split-complementary
#1B2A02 #02072A #25022A
monochromatic
#131D01 #131D01 #1B2A02 #416405 #669F08

Accessibility & contrast

On white

15.23
#1B2A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B2A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A02
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A02#FFFFFF#000000##FFFFFF
##1B2A021.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2600
Deuteranopia (green-blind)
#2B2505
Tritanopia (blue-blind)
#1C2822
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b2a02;
/* rgb */ color: rgb(27, 42, 2);
/* oklch */ color: oklch(26.2% 0.065 128.0);
Tailwind
colors: {
  custom: {
    50: '#586347',
    500: '#1b2a02',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a02;
$custom-light: #586347;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a02",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 82.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.26182,
    "c": 0.06539,
    "h": 128
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#1B2A02
secondary
#39196F
accent
#29FF79
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#030500
muted
#787977

Preview Lab

Preview with #1B2A02

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

Preview Lab → · Contrast checker → · Palette generator →

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