#1B5212#1B5212

#1B5212 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.111 H 141.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#1B5212
RGBrgb(27, 82, 18)
HSLhsl(112, 64%, 20%)
HSVhsv(112, 78%, 32%)
CMYKcmyk(67.1%, 0%, 78%, 67.8%)
CIE-LABlab(30.18, -31.49, 30.62)
CIE-LCHlch(30.18, 43.92, 135.80°)
OKLaboklab(38.77% -0.0861 0.0695)
OKLCHoklch(38.77% 0.111 141.1)
XYZxyz(3.5783, 6.3109, 1.6017)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B5212 #491252
analogous
#3B5212 #1B5212 #125229
triadic
#1B5212 #121B52 #52121B
tetradic
#1B5212 #123B52 #491252 #522912
square
#1B5212 #123B52 #491252 #522912
split-complementary
#1B5212 #291252 #52123B
monochromatic
#081906 #0A2007 #1B5212 #2C841D #3CB628

Accessibility & contrast

On white

9.28
#1B5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1B5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B5212
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B5212#FFFFFF#000000##FFFFFF
##1B52121.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A07
Deuteranopia (green-blind)
#4E4518
Tritanopia (blue-blind)
#124F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1b5212;
/* rgb */ color: rgb(27, 82, 18);
/* oklch */ color: oklch(38.8% 0.111 141.1);
Tailwind
colors: {
  custom: {
    50: '#608354',
    500: '#1b5212',
    950: '#000000',
  },
}
SCSS
$custom: #1b5212;
$custom-light: #608354;
$custom-dark: #000000;
JSON
{
  "hex": "#1b5212",
  "rgb": {
    "r": 27,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 111.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38772,
    "c": 0.11066,
    "h": 141.1
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#1B5212
secondary
#7F358B
accent
#41E7D0
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #1B5212

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

Preview Lab → · Contrast checker → · Palette generator →

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