#21517F#21517F

#21517F is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.6% C 0.093 H 250.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#21517F
RGBrgb(33, 81, 127)
HSLhsl(209, 59%, 31%)
HSVhsv(209, 74%, 50%)
CMYKcmyk(74%, 36.2%, 0%, 50.2%)
CIE-LABlab(33.43, 0.41, -30.65)
CIE-LCHlch(33.43, 30.65, 270.77°)
OKLaboklab(42.56% -0.0315 -0.0871)
OKLCHoklch(42.56% 0.093 250.1)
XYZxyz(7.3990, 7.7397, 21.1785)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21517F #7F4F21
analogous
#217F7E #21517F #21227F
triadic
#21517F #7F2151 #517F21
tetradic
#21517F #7E217F #7F4F21 #227F21
square
#21517F #7E217F #7F4F21 #227F21
split-complementary
#21517F #7F2122 #7F7E21
monochromatic
#08131E #14324E #21517F #2E70B0 #4A8FD0

Accessibility & contrast

On white

8.24
#21517F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#21517F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21517F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21517F#FFFFFF#000000##FFFFFF
##21517F1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5381
Deuteranopia (green-blind)
#2F4B7E
Tritanopia (blue-blind)
#005C62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #21517f;
/* rgb */ color: rgb(33, 81, 127);
/* oklch */ color: oklch(42.6% 0.093 250.1);
Tailwind
colors: {
  custom: {
    50: '#6981a4',
    500: '#21517f',
    950: '#000000',
  },
}
SCSS
$custom: #21517f;
$custom-light: #6981a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21517f",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 127
  },
  "hsl": {
    "h": 209.362,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42561,
    "c": 0.09258,
    "h": 250.1
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#21517F
secondary
#B27D4A
accent
#9246E2
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #21517F

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

Preview Lab → · Contrast checker → · Palette generator →

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