#1B5940#1B5940

#1B5940 is a dark, moderate teal. Relative luminance 0.077; OKLCH L 41.7% C 0.076 H 162.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#1B5940
RGBrgb(27, 89, 64)
HSLhsl(156, 53%, 23%)
HSVhsv(156, 70%, 35%)
CMYKcmyk(69.7%, 0%, 28.1%, 65.1%)
CIE-LABlab(33.45, -26.44, 8.80)
CIE-LCHlch(33.45, 27.87, 161.59°)
OKLaboklab(41.7% -0.0727 0.0225)
OKLCHoklch(41.7% 0.076 162.8)
XYZxyz(4.9493, 7.7474, 6.0841)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B5940 #591B34
analogous
#1B5921 #1B5940 #1B5359
triadic
#1B5940 #401B59 #59401B
tetradic
#1B5940 #211B59 #591B34 #53591B
square
#1B5940 #211B59 #591B34 #53591B
split-complementary
#1B5940 #591B53 #59211B
monochromatic
#071711 #0D2A1E #1B5940 #298862 #37B784

Accessibility & contrast

On white

8.24
#1B5940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1B5940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B5940
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B5940#FFFFFF#000000##FFFFFF
##1B59401.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57523F
Deuteranopia (green-blind)
#4F4C42
Tritanopia (blue-blind)
#005952
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1b5940;
/* rgb */ color: rgb(27, 89, 64);
/* oklch */ color: oklch(41.7% 0.076 162.8);
Tailwind
colors: {
  custom: {
    50: '#608874',
    500: '#1b5940',
    950: '#000000',
  },
}
SCSS
$custom: #1b5940;
$custom-light: #608874;
$custom-dark: #000000;
JSON
{
  "hex": "#1b5940",
  "rgb": {
    "r": 27,
    "g": 89,
    "b": 64
  },
  "hsl": {
    "h": 155.806,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.07605,
    "h": 162.8
  },
  "luminance": 0.07748
}

Semantic roles & 50–950 ramp

primary
#1B5940
secondary
#8F4160
accent
#4B86DD
background
#F5F8F7
surface
#EAF0ED
border
#C6CBC8
text
#050B08
muted
#797C7B

Preview Lab

Preview with #1B5940

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

Preview Lab → · Contrast checker → · Palette generator →

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