#21798E#21798E

#21798E is a mid, moderate cyan. Relative luminance 0.160; OKLCH L 53.5% C 0.086 H 217.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#21798E
RGBrgb(33, 121, 142)
HSLhsl(192, 62%, 34%)
HSVhsv(192, 77%, 56%)
CMYKcmyk(76.8%, 14.8%, 0%, 44.3%)
CIE-LABlab(46.91, -17.94, -18.74)
CIE-LCHlch(46.91, 25.95, 226.25°)
OKLaboklab(53.51% -0.0678 -0.0523)
OKLCHoklch(53.51% 0.086 217.7)
XYZxyz(12.3450, 15.9496, 28.0139)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21798E #8E3621
analogous
#218E6D #21798E #21428E
triadic
#21798E #8E2179 #798E21
tetradic
#21798E #6D218E #8E3621 #428E21
square
#21798E #6D218E #8E3621 #428E21
split-complementary
#21798E #8E2142 #8E6D21
monochromatic
#0A242B #154F5C #21798E #2DA3C0 #52BDD7

Accessibility & contrast

On white

5.01
#21798E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#21798E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21798E
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21798E#FFFFFF#000000##FFFFFF
##21798E1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B758F
Deuteranopia (green-blind)
#5D6B8E
Tritanopia (blue-blind)
#008080
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #21798e;
/* rgb */ color: rgb(33, 121, 142);
/* oklch */ color: oklch(53.5% 0.086 217.7);
Tailwind
colors: {
  custom: {
    50: '#6ea0af',
    500: '#21798e',
    950: '#000000',
  },
}
SCSS
$custom: #21798e;
$custom-light: #6ea0af;
$custom-dark: #000000;
JSON
{
  "hex": "#21798e",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 191.56,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.53512,
    "c": 0.08563,
    "h": 217.7
  },
  "luminance": 0.15951
}

Semantic roles & 50–950 ramp

primary
#21798E
secondary
#BA6550
accent
#6242E5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #21798E

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

Preview Lab → · Contrast checker → · Palette generator →

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