#21517C#21517C

#21517C is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.4% C 0.089 H 248.5°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#21517C
RGBrgb(33, 81, 124)
HSLhsl(208, 58%, 31%)
HSVhsv(208, 73%, 49%)
CMYKcmyk(73.4%, 34.7%, 0%, 51.4%)
CIE-LABlab(33.27, -0.75, -29.05)
CIE-LCHlch(33.27, 29.06, 268.52°)
OKLaboklab(42.38% -0.0324 -0.0824)
OKLCHoklch(42.38% 0.089 248.5)
XYZxyz(7.2063, 7.6626, 20.1641)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21517C #7C4C21
analogous
#217C79 #21517C #21237C
triadic
#21517C #7C2151 #517C21
tetradic
#21517C #79217C #7C4C21 #237C21
square
#21517C #79217C #7C4C21 #237C21
split-complementary
#21517C #7C2123 #7C7921
monochromatic
#07121B #14314C #21517C #2E71AC #498FCF

Accessibility & contrast

On white

8.29
#21517C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#21517C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21517C
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21517C#FFFFFF#000000##FFFFFF
##21517C1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537E
Deuteranopia (green-blind)
#314A7B
Tritanopia (blue-blind)
#005B60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #21517c;
/* rgb */ color: rgb(33, 81, 124);
/* oklch */ color: oklch(42.4% 0.089 248.5);
Tailwind
colors: {
  custom: {
    50: '#6981a2',
    500: '#21517c',
    950: '#000000',
  },
}
SCSS
$custom: #21517c;
$custom-light: #6981a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21517c",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 208.352,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42378,
    "c": 0.08854,
    "h": 248.5
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#21517C
secondary
#AF7A4A
accent
#9047E1
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #21517C

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

Preview Lab → · Contrast checker → · Palette generator →

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