#1B3102#1B3102

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

Color values

HEX#1B3102
RGBrgb(27, 49, 2)
HSLhsl(88, 92%, 10%)
HSVhsv(88, 96%, 19%)
CMYKcmyk(44.9%, 0%, 95.9%, 80.8%)
CIE-LABlab(17.62, -17.80, 24.01)
CIE-LCHlch(17.62, 29.89, 126.56°)
OKLaboklab(28.39% -0.0506 0.0565)
OKLCHoklch(28.39% 0.076 131.9)
XYZxyz(1.5612, 2.4340, 0.4450)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3102 #180231
analogous
#312F02 #1B3102 #043102
triadic
#1B3102 #021B31 #31021B
tetradic
#1B3102 #02312F #180231 #310204
square
#1B3102 #02312F #180231 #310204
split-complementary
#1B3102 #020431 #2F0231
monochromatic
#101D01 #101D01 #1B3102 #3B6C04 #5CA707

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B3102#FFFFFF#000000##FFFFFF
##1B31021.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)
#312B06
Tritanopia (blue-blind)
#1C2E28
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b3102;
/* rgb */ color: rgb(27, 49, 2);
/* oklch */ color: oklch(28.4% 0.076 131.9);
Tailwind
colors: {
  custom: {
    50: '#596948',
    500: '#1b3102',
    950: '#000000',
  },
}
SCSS
$custom: #1b3102;
$custom-light: #596948;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3102",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 2
  },
  "hsl": {
    "h": 88.085,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.28386,
    "c": 0.07582,
    "h": 131.9
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#1B3102
secondary
#441975
accent
#29FF8D
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #1B3102

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

Preview Lab → · Contrast checker → · Palette generator →

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