#21517E#21517E

#21517E is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.5% C 0.091 H 249.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#21517E
RGBrgb(33, 81, 126)
HSLhsl(209, 58%, 31%)
HSVhsv(209, 74%, 49%)
CMYKcmyk(73.8%, 35.7%, 0%, 50.6%)
CIE-LABlab(33.38, 0.02, -30.12)
CIE-LCHlch(33.38, 30.12, 270.05°)
OKLaboklab(42.5% -0.0318 -0.0855)
OKLCHoklch(42.5% 0.091 249.6)
XYZxyz(7.3341, 7.7137, 20.8370)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21517E #7E4E21
analogous
#217E7C #21517E #21227E
triadic
#21517E #7E2151 #517E21
tetradic
#21517E #7C217E #7E4E21 #227E21
square
#21517E #7C217E #7E4E21 #227E21
split-complementary
#21517E #7E2122 #7E7C21
monochromatic
#08131D #14324E #21517E #2E70AE #4A8FD0

Accessibility & contrast

On white

8.26
#21517E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#21517E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21517E
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21517E#FFFFFF#000000##FFFFFF
##21517E1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5380
Deuteranopia (green-blind)
#2F4B7D
Tritanopia (blue-blind)
#005C61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #21517e;
/* rgb */ color: rgb(33, 81, 126);
/* oklch */ color: oklch(42.5% 0.091 249.6);
Tailwind
colors: {
  custom: {
    50: '#6981a3',
    500: '#21517e',
    950: '#000000',
  },
}
SCSS
$custom: #21517e;
$custom-light: #6981a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21517e",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 209.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42499,
    "c": 0.09123,
    "h": 249.6
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#21517E
secondary
#B17C4A
accent
#9146E2
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #21517E

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

Preview Lab → · Contrast checker → · Palette generator →

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