#21797F#21797F

#21797F is a mid, moderate teal. Relative luminance 0.155; OKLCH L 52.9% C 0.080 H 201.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#21797F
RGBrgb(33, 121, 127)
HSLhsl(184, 59%, 31%)
HSVhsv(184, 74%, 50%)
CMYKcmyk(74%, 4.7%, 0%, 50.2%)
CIE-LABlab(46.35, -22.94, -10.70)
CIE-LCHlch(46.35, 25.31, 205.01°)
OKLaboklab(52.88% -0.0744 -0.0297)
OKLCHoklch(52.88% 0.08 201.8)
XYZxyz(11.2936, 15.5290, 22.4768)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21797F #7F2721
analogous
#217F56 #21797F #214A7F
triadic
#21797F #7F2179 #797F21
tetradic
#21797F #56217F #7F2721 #4A7F21
square
#21797F #56217F #7F2721 #4A7F21
split-complementary
#21797F #7F214A #7F5621
monochromatic
#081C1E #144B4E #21797F #2EA7B0 #4AC8D0

Accessibility & contrast

On white

5.11
#21797F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#21797F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21797F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21797F#FFFFFF#000000##FFFFFF
##21797F1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F747F
Deuteranopia (green-blind)
#626A7F
Tritanopia (blue-blind)
#007E7B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #21797f;
/* rgb */ color: rgb(33, 121, 127);
/* oklch */ color: oklch(52.9% 0.080 201.8);
Tailwind
colors: {
  custom: {
    50: '#6ca0a4',
    500: '#21797f',
    950: '#000000',
  },
}
SCSS
$custom: #21797f;
$custom-light: #6ca0a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21797f",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 127
  },
  "hsl": {
    "h": 183.83,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52877,
    "c": 0.08008,
    "h": 201.8
  },
  "luminance": 0.1553
}

Semantic roles & 50–950 ramp

primary
#21797F
secondary
#B2514A
accent
#5046E2
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #21797F

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

Preview Lab → · Contrast checker → · Palette generator →

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