#21798F#21798F

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

Color values

HEX#21798F
RGBrgb(33, 121, 143)
HSLhsl(192, 63%, 35%)
HSVhsv(192, 77%, 56%)
CMYKcmyk(76.9%, 15.4%, 0%, 43.9%)
CIE-LABlab(46.95, -17.60, -19.27)
CIE-LCHlch(46.95, 26.10, 227.60°)
OKLaboklab(53.56% -0.0674 -0.0538)
OKLCHoklch(53.56% 0.086 218.6)
XYZxyz(12.4204, 15.9798, 28.4111)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21798F #8F3721
analogous
#218F6E #21798F #21428F
triadic
#21798F #8F2179 #798F21
tetradic
#21798F #6E218F #8F3721 #428F21
square
#21798F #6E218F #8F3721 #428F21
split-complementary
#21798F #8F2142 #8F6E21
monochromatic
#0A252C #164F5D #21798F #2CA3C1 #53BDD7

Accessibility & contrast

On white

5.00
#21798F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#21798F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21798F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21798F#FFFFFF#000000##FFFFFF
##21798F1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21798f;
/* rgb */ color: rgb(33, 121, 143);
/* oklch */ color: oklch(53.6% 0.086 218.6);
Tailwind
colors: {
  custom: {
    50: '#6ea0af',
    500: '#21798f',
    950: '#000000',
  },
}
SCSS
$custom: #21798f;
$custom-light: #6ea0af;
$custom-dark: #000000;
JSON
{
  "hex": "#21798f",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 143
  },
  "hsl": {
    "h": 192,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.53557,
    "c": 0.08624,
    "h": 218.6
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#21798F
secondary
#BB6651
accent
#6342E6
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #21798F

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

Preview Lab → · Contrast checker → · Palette generator →

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