#1B3A04#1B3A04

#1B3A04 is a dark, moderate yellow-green. Relative luminance 0.033; OKLCH L 31.2% C 0.087 H 135.4°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#1B3A04
RGBrgb(27, 58, 4)
HSLhsl(94, 87%, 12%)
HSVhsv(94, 93%, 23%)
CMYKcmyk(53.4%, 0%, 93.1%, 77.3%)
CIE-LABlab(21.09, -22.12, 27.19)
CIE-LCHlch(21.09, 35.05, 129.13°)
OKLaboklab(31.24% -0.0619 0.0611)
OKLCHoklch(31.24% 0.087 135.4)
XYZxyz(1.9869, 3.2678, 0.6409)
Luminance0.0327 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A04 #23043A
analogous
#363A04 #1B3A04 #043A08
triadic
#1B3A04 #041B3A #3A041B
tetradic
#1B3A04 #04363A #23043A #3A0804
square
#1B3A04 #04363A #23043A #3A0804
split-complementary
#1B3A04 #08043A #3A0436
monochromatic
#0D1D02 #0D1D02 #1B3A04 #367308 #50AD0C

Accessibility & contrast

On white

12.70
#1B3A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1B3A04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A04
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A04#FFFFFF#000000##FFFFFF
##1B3A041.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#383209
Tritanopia (blue-blind)
#1A3730
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b3a04;
/* rgb */ color: rgb(27, 58, 4);
/* oklch */ color: oklch(31.2% 0.087 135.4);
Tailwind
colors: {
  custom: {
    50: '#5b704a',
    500: '#1b3a04',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a04;
$custom-light: #5b704a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a04",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 4
  },
  "hsl": {
    "h": 94.444,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.31236,
    "c": 0.08697,
    "h": 135.4
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#1B3A04
secondary
#541E7C
accent
#2BFDA4
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1B3A04

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

Preview Lab → · Contrast checker → · Palette generator →

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