#21787F#21787F

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

Color values

HEX#21787F
RGBrgb(33, 120, 127)
HSLhsl(184, 59%, 31%)
HSVhsv(184, 74%, 50%)
CMYKcmyk(74%, 5.5%, 0%, 50.2%)
CIE-LABlab(46.03, -22.42, -11.19)
CIE-LCHlch(46.03, 25.06, 206.53°)
OKLaboklab(52.61% -0.0733 -0.0311)
OKLCHoklch(52.61% 0.08 203)
XYZxyz(11.1727, 15.2873, 22.4365)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21787F #7F2821
analogous
#217F57 #21787F #21497F
triadic
#21787F #7F2178 #787F21
tetradic
#21787F #57217F #7F2821 #497F21
square
#21787F #57217F #7F2821 #497F21
split-complementary
#21787F #7F2149 #7F5721
monochromatic
#081C1E #144A4E #21787F #2EA6B0 #4AC6D0

Accessibility & contrast

On white

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

On black

4.06
#21787F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21787F#FFFFFF#000000##FFFFFF
##21787F1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21787f;
/* rgb */ color: rgb(33, 120, 127);
/* oklch */ color: oklch(52.6% 0.080 203.0);
Tailwind
colors: {
  custom: {
    50: '#6c9fa4',
    500: '#21787f',
    950: '#000000',
  },
}
SCSS
$custom: #21787f;
$custom-light: #6c9fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#21787f",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 184.468,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52613,
    "c": 0.0796,
    "h": 203
  },
  "luminance": 0.15289
}

Semantic roles & 50–950 ramp

primary
#21787F
secondary
#B2524A
accent
#5146E2
background
#F6F9FA
surface
#ECF2F4
border
#C7CCCE
text
#080E0F
muted
#7A7E7F

Preview Lab

Preview with #21787F

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

Preview Lab → · Contrast checker → · Palette generator →

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