#21518E#21518E

#21518E is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.5% C 0.113 H 255.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#21518E
RGBrgb(33, 81, 142)
HSLhsl(214, 62%, 34%)
HSVhsv(214, 77%, 56%)
CMYKcmyk(76.8%, 43%, 0%, 44.3%)
CIE-LABlab(34.31, 6.29, -38.46)
CIE-LCHlch(34.31, 38.97, 279.28°)
OKLaboklab(43.53% -0.0276 -0.11)
OKLCHoklch(43.53% 0.113 255.9)
XYZxyz(8.4503, 8.1602, 26.7157)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21518E #8E5E21
analogous
#21888E #21518E #28218E
triadic
#21518E #8E2151 #518E21
tetradic
#21518E #8E2188 #8E5E21 #218E28
square
#21518E #8E2188 #8E5E21 #218E28
split-complementary
#21518E #8E2821 #888E21
monochromatic
#0A182B #15355C #21518E #2D6DC0 #528DD7

Accessibility & contrast

On white

7.98
#21518E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#21518E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21518E
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21518E#FFFFFF#000000##FFFFFF
##21518E1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#204C8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #21518e;
/* rgb */ color: rgb(33, 81, 142);
/* oklch */ color: oklch(43.5% 0.113 255.9);
Tailwind
colors: {
  custom: {
    50: '#6c81af',
    500: '#21518e',
    950: '#000000',
  },
}
SCSS
$custom: #21518e;
$custom-light: #6c81af;
$custom-dark: #000000;
JSON
{
  "hex": "#21518e",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 213.578,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43534,
    "c": 0.11338,
    "h": 255.9
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#21518E
secondary
#BA8C50
accent
#9E42E5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #21518E

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

Preview Lab → · Contrast checker → · Palette generator →

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