#21798C#21798C

#21798C is a mid, moderate cyan. Relative luminance 0.159; OKLCH L 53.4% C 0.085 H 215.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#21798C
RGBrgb(33, 121, 140)
HSLhsl(191, 62%, 34%)
HSVhsv(191, 76%, 55%)
CMYKcmyk(76.4%, 13.6%, 0%, 45.1%)
CIE-LABlab(46.83, -18.63, -17.68)
CIE-LCHlch(46.83, 25.68, 223.51°)
OKLaboklab(53.42% -0.0686 -0.0493)
OKLCHoklch(53.42% 0.085 215.7)
XYZxyz(12.1962, 15.8901, 27.2302)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21798C #8C3421
analogous
#218C6A #21798C #21448C
triadic
#21798C #8C2179 #798C21
tetradic
#21798C #6A218C #8C3421 #448C21
square
#21798C #6A218C #8C3421 #448C21
split-complementary
#21798C #8C2144 #8C6A21
monochromatic
#0A2329 #154E5A #21798C #2DA4BE #51BED6

Accessibility & contrast

On white

5.03
#21798C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#21798C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21798C
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21798C#FFFFFF#000000##FFFFFF
##21798C1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C758D
Deuteranopia (green-blind)
#5D6A8C
Tritanopia (blue-blind)
#00807F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #21798c;
/* rgb */ color: rgb(33, 121, 140);
/* oklch */ color: oklch(53.4% 0.085 215.7);
Tailwind
colors: {
  custom: {
    50: '#6ea0ad',
    500: '#21798c',
    950: '#000000',
  },
}
SCSS
$custom: #21798c;
$custom-light: #6ea0ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21798c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 140
  },
  "hsl": {
    "h": 190.654,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.53423,
    "c": 0.08451,
    "h": 215.7
  },
  "luminance": 0.15892
}

Semantic roles & 50–950 ramp

primary
#21798C
secondary
#B9624F
accent
#6043E5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #21798C

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

Preview Lab → · Contrast checker → · Palette generator →

#21798C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva