#21787B#21787B

#21787B is a mid, moderate teal. Relative luminance 0.152; OKLCH L 52.5% C 0.079 H 198.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#21787B
RGBrgb(33, 120, 123)
HSLhsl(182, 58%, 31%)
HSVhsv(182, 73%, 48%)
CMYKcmyk(73.2%, 2.4%, 0%, 51.8%)
CIE-LABlab(45.89, -23.70, -9.02)
CIE-LCHlch(45.89, 25.36, 200.83°)
OKLaboklab(52.46% -0.0751 -0.025)
OKLCHoklch(52.46% 0.079 198.4)
XYZxyz(10.9172, 15.1851, 21.0907)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21787B #7B2421
analogous
#217B51 #21787B #214B7B
triadic
#21787B #7B2178 #787B21
tetradic
#21787B #51217B #7B2421 #4B7B21
square
#21787B #51217B #7B2421 #4B7B21
split-complementary
#21787B #7B214B #7B5121
monochromatic
#071A1A #14494B #21787B #2EA7AB #48CACE

Accessibility & contrast

On white

5.20
#21787B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#21787B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21787B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21787B#FFFFFF#000000##FFFFFF
##21787B1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F727B
Deuteranopia (green-blind)
#62697B
Tritanopia (blue-blind)
#007C79
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #21787b;
/* rgb */ color: rgb(33, 120, 123);
/* oklch */ color: oklch(52.5% 0.079 198.4);
Tailwind
colors: {
  custom: {
    50: '#6c9fa1',
    500: '#21787b',
    950: '#000000',
  },
}
SCSS
$custom: #21787b;
$custom-light: #6c9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#21787b",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 123
  },
  "hsl": {
    "h": 182,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52455,
    "c": 0.0792,
    "h": 198.4
  },
  "luminance": 0.15186
}

Semantic roles & 50–950 ramp

primary
#21787B
secondary
#AE4D4A
accent
#4C47E1
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#080E0E
muted
#7A7E7E

Preview Lab

Preview with #21787B

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

Preview Lab → · Contrast checker → · Palette generator →

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