#21798D#21798D

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

Color values

HEX#21798D
RGBrgb(33, 121, 141)
HSLhsl(191, 62%, 34%)
HSVhsv(191, 77%, 55%)
CMYKcmyk(76.6%, 14.2%, 0%, 44.7%)
CIE-LABlab(46.87, -18.28, -18.21)
CIE-LCHlch(46.87, 25.81, 224.88°)
OKLaboklab(53.47% -0.0682 -0.0508)
OKLCHoklch(53.47% 0.085 216.7)
XYZxyz(12.2703, 15.9197, 27.6203)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21798D #8D3521
analogous
#218D6B #21798D #21438D
triadic
#21798D #8D2179 #798D21
tetradic
#21798D #6B218D #8D3521 #438D21
square
#21798D #6B218D #8D3521 #438D21
split-complementary
#21798D #8D2143 #8D6B21
monochromatic
#0A242A #154E5B #21798D #2DA4BF #52BED6

Accessibility & contrast

On white

5.02
#21798D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21798D
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21798D#FFFFFF#000000##FFFFFF
##21798D1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21798d;
/* rgb */ color: rgb(33, 121, 141);
/* oklch */ color: oklch(53.5% 0.085 216.7);
Tailwind
colors: {
  custom: {
    50: '#6ea0ae',
    500: '#21798d',
    950: '#000000',
  },
}
SCSS
$custom: #21798d;
$custom-light: #6ea0ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21798d",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 141
  },
  "hsl": {
    "h": 191.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.53467,
    "c": 0.08505,
    "h": 216.7
  },
  "luminance": 0.15921
}

Semantic roles & 50–950 ramp

primary
#21798D
secondary
#BA6350
accent
#6143E5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #21798D

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

Preview Lab → · Contrast checker → · Palette generator →

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