#21518B#21518B

#21518B is a dark, moderate cyan. Relative luminance 0.081; OKLCH L 43.3% C 0.109 H 255.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#21518B
RGBrgb(33, 81, 139)
HSLhsl(213, 62%, 34%)
HSVhsv(213, 76%, 55%)
CMYKcmyk(76.3%, 41.7%, 0%, 45.5%)
CIE-LABlab(34.13, 5.10, -36.92)
CIE-LCHlch(34.13, 37.27, 277.87°)
OKLaboklab(43.33% -0.0283 -0.1054)
OKLCHoklch(43.33% 0.109 255)
XYZxyz(8.2281, 8.0713, 25.5454)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21518B #8B5B21
analogous
#21868B #21518B #26218B
triadic
#21518B #8B2151 #518B21
tetradic
#21518B #8B2186 #8B5B21 #218B26
square
#21518B #8B2186 #8B5B21 #218B26
split-complementary
#21518B #8B2621 #868B21
monochromatic
#0A1728 #15345A #21518B #2D6EBC #518DD6

Accessibility & contrast

On white

8.03
#21518B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#21518B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21518B
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21518B#FFFFFF#000000##FFFFFF
##21518B1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568D
Deuteranopia (green-blind)
#244C8A
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #21518b;
/* rgb */ color: rgb(33, 81, 139);
/* oklch */ color: oklch(43.3% 0.109 255.0);
Tailwind
colors: {
  custom: {
    50: '#6c81ad',
    500: '#21518b',
    950: '#000000',
  },
}
SCSS
$custom: #21518b;
$custom-light: #6c81ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21518b",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 139
  },
  "hsl": {
    "h": 212.83,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43332,
    "c": 0.10918,
    "h": 255
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#21518B
secondary
#B9894F
accent
#9C43E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #21518B

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

Preview Lab → · Contrast checker → · Palette generator →

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