#21798B#21798B

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

Color values

HEX#21798B
RGBrgb(33, 121, 139)
HSLhsl(190, 62%, 34%)
HSVhsv(190, 76%, 55%)
CMYKcmyk(76.3%, 12.9%, 0%, 45.5%)
CIE-LABlab(46.79, -18.97, -17.15)
CIE-LCHlch(46.79, 25.57, 222.12°)
OKLaboklab(53.38% -0.069 -0.0478)
OKLCHoklch(53.38% 0.084 214.7)
XYZxyz(12.1228, 15.8607, 26.8436)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21798B #8B3321
analogous
#218B68 #21798B #21448B
triadic
#21798B #8B2179 #798B21
tetradic
#21798B #68218B #8B3321 #448B21
square
#21798B #68218B #8B3321 #448B21
split-complementary
#21798B #8B2144 #8B6821
monochromatic
#0A2328 #154E5A #21798B #2DA4BC #51BFD6

Accessibility & contrast

On white

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

On black

4.17
#21798B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21798B#FFFFFF#000000##FFFFFF
##21798B1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21798b;
/* rgb */ color: rgb(33, 121, 139);
/* oklch */ color: oklch(53.4% 0.084 214.7);
Tailwind
colors: {
  custom: {
    50: '#6ea0ad',
    500: '#21798b',
    950: '#000000',
  },
}
SCSS
$custom: #21798b;
$custom-light: #6ea0ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21798b",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 139
  },
  "hsl": {
    "h": 190.189,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.53379,
    "c": 0.08398,
    "h": 214.7
  },
  "luminance": 0.15862
}

Semantic roles & 50–950 ramp

primary
#21798B
secondary
#B9614F
accent
#5F43E5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #21798B

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

Preview Lab → · Contrast checker → · Palette generator →

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