#21528B#21528B

#21528B is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.6% C 0.108 H 254.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#21528B
RGBrgb(33, 82, 139)
HSLhsl(212, 62%, 34%)
HSVhsv(212, 76%, 55%)
CMYKcmyk(76.3%, 41%, 0%, 45.5%)
CIE-LABlab(34.44, 4.44, -36.43)
CIE-LCHlch(34.44, 36.70, 276.96°)
OKLaboklab(43.57% -0.0293 -0.104)
OKLCHoklch(43.57% 0.108 254.3)
XYZxyz(8.3030, 8.2211, 25.5703)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21528B #8B5A21
analogous
#21878B #21528B #25218B
triadic
#21528B #8B2152 #528B21
tetradic
#21528B #8B2187 #8B5A21 #218B25
square
#21528B #8B2187 #8B5A21 #218B25
split-complementary
#21528B #8B2521 #878B21
monochromatic
#0A1828 #15355A #21528B #2D6FBC #518ED6

Accessibility & contrast

On white

7.94
#21528B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#21528B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21528B
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21528B#FFFFFF#000000##FFFFFF
##21528B1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568D
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #21528b;
/* rgb */ color: rgb(33, 82, 139);
/* oklch */ color: oklch(43.6% 0.108 254.3);
Tailwind
colors: {
  custom: {
    50: '#6c82ad',
    500: '#21528b',
    950: '#000000',
  },
}
SCSS
$custom: #21528b;
$custom-light: #6c82ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21528b",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 139
  },
  "hsl": {
    "h": 212.264,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43571,
    "c": 0.10802,
    "h": 254.3
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#21528B
secondary
#B9884F
accent
#9A43E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #21528B

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

Preview Lab → · Contrast checker → · Palette generator →

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