#1B4002#1B4002

#1B4002 is a dark, moderate yellow-green. Relative luminance 0.039; OKLCH L 33.1% C 0.097 H 136.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#1B4002
RGBrgb(27, 64, 2)
HSLhsl(96, 94%, 13%)
HSVhsv(96, 97%, 25%)
CMYKcmyk(57.8%, 0%, 96.9%, 74.9%)
CIE-LABlab(23.35, -25.07, 30.39)
CIE-LCHlch(23.35, 39.40, 129.52°)
OKLaboklab(33.1% -0.07 0.0668)
OKLCHoklch(33.1% 0.097 136.3)
XYZxyz(2.2963, 3.9040, 0.6900)
Luminance0.0390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4002 #270240
analogous
#3A4002 #1B4002 #024008
triadic
#1B4002 #021B40 #40021B
tetradic
#1B4002 #023A40 #270240 #400802
square
#1B4002 #023A40 #270240 #400802
split-complementary
#1B4002 #080240 #40023A
monochromatic
#0D1E01 #0D1E01 #1B4002 #347B04 #4DB706

Accessibility & contrast

On white

11.79
#1B4002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1B4002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4002
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4002#FFFFFF#000000##FFFFFF
##1B40021.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#3E3709
Tritanopia (blue-blind)
#193D35
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b4002;
/* rgb */ color: rgb(27, 64, 2);
/* oklch */ color: oklch(33.1% 0.097 136.3);
Tailwind
colors: {
  custom: {
    50: '#5d7549',
    500: '#1b4002',
    950: '#000000',
  },
}
SCSS
$custom: #1b4002;
$custom-light: #5d7549;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4002",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 2
  },
  "hsl": {
    "h": 95.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.33096,
    "c": 0.09679,
    "h": 136.3
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#1B4002
secondary
#591B83
accent
#29FFA9
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040801
muted
#797B77

Preview Lab

Preview with #1B4002

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

Preview Lab → · Contrast checker → · Palette generator →

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