#21787E#21787E

#21787E is a mid, moderate teal. Relative luminance 0.153; OKLCH L 52.6% C 0.079 H 201.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#21787E
RGBrgb(33, 120, 126)
HSLhsl(184, 58%, 31%)
HSVhsv(184, 74%, 49%)
CMYKcmyk(73.8%, 4.8%, 0%, 50.6%)
CIE-LABlab(45.99, -22.74, -10.65)
CIE-LCHlch(45.99, 25.11, 205.09°)
OKLaboklab(52.57% -0.0737 -0.0296)
OKLCHoklch(52.57% 0.079 201.8)
XYZxyz(11.1079, 15.2613, 22.0949)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21787E #7E2721
analogous
#217E55 #21787E #21497E
triadic
#21787E #7E2178 #787E21
tetradic
#21787E #55217E #7E2721 #497E21
square
#21787E #55217E #7E2721 #497E21
split-complementary
#21787E #7E2149 #7E5521
monochromatic
#081C1D #144A4E #21787E #2EA6AE #4AC7D0

Accessibility & contrast

On white

5.18
#21787E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#21787E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21787E
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21787E#FFFFFF#000000##FFFFFF
##21787E1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E737E
Deuteranopia (green-blind)
#61697E
Tritanopia (blue-blind)
#007D7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #21787e;
/* rgb */ color: rgb(33, 120, 126);
/* oklch */ color: oklch(52.6% 0.079 201.8);
Tailwind
colors: {
  custom: {
    50: '#6c9fa3',
    500: '#21787e',
    950: '#000000',
  },
}
SCSS
$custom: #21787e;
$custom-light: #6c9fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#21787e",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 126
  },
  "hsl": {
    "h": 183.871,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.07945,
    "h": 201.8
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#21787E
secondary
#B1514A
accent
#5046E2
background
#F6F9FA
surface
#ECF2F3
border
#C7CCCD
text
#080E0F
muted
#7A7E7F

Preview Lab

Preview with #21787E

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

Preview Lab → · Contrast checker → · Palette generator →

#21787E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva