#1B3104#1B3104

#1B3104 is a dark, moderate yellow-green. Relative luminance 0.024; OKLCH L 28.4% C 0.074 H 132.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#1B3104
RGBrgb(27, 49, 4)
HSLhsl(89, 85%, 10%)
HSVhsv(89, 92%, 19%)
CMYKcmyk(44.9%, 0%, 91.8%, 80.8%)
CIE-LABlab(17.64, -17.59, 23.22)
CIE-LCHlch(17.64, 29.13, 127.15°)
OKLaboklab(28.41% -0.0498 0.0545)
OKLCHoklch(28.41% 0.074 132.4)
XYZxyz(1.5722, 2.4383, 0.5026)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3104 #1A0431
analogous
#313004 #1B3104 #053104
triadic
#1B3104 #041B31 #31041B
tetradic
#1B3104 #043130 #1A0431 #310405
square
#1B3104 #043130 #1A0431 #310405
split-complementary
#1B3104 #040531 #300431
monochromatic
#101C02 #101C02 #1B3104 #3A6A09 #59A20D

Accessibility & contrast

On white

14.12
#1B3104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B3104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3104
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3104#FFFFFF#000000##FFFFFF
##1B31041.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342C00
Deuteranopia (green-blind)
#312B08
Tritanopia (blue-blind)
#1B2F28
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b3104;
/* rgb */ color: rgb(27, 49, 4);
/* oklch */ color: oklch(28.4% 0.074 132.4);
Tailwind
colors: {
  custom: {
    50: '#596949',
    500: '#1b3104',
    950: '#000000',
  },
}
SCSS
$custom: #1b3104;
$custom-light: #596949;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3104",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 4
  },
  "hsl": {
    "h": 89.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28409,
    "c": 0.07378,
    "h": 132.4
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#1B3104
secondary
#471D73
accent
#2DFB92
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1B3104

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

Preview Lab → · Contrast checker → · Palette generator →

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