#21529E#21529E

#21529E is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.9% C 0.135 H 259.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#21529E
RGBrgb(33, 82, 158)
HSLhsl(216, 65%, 37%)
HSVhsv(216, 79%, 62%)
CMYKcmyk(79.1%, 48.1%, 0%, 38%)
CIE-LABlab(35.65, 11.96, -46.01)
CIE-LCHlch(35.65, 47.54, 284.57°)
OKLaboklab(44.9% -0.0254 -0.1321)
OKLCHoklch(44.9% 0.135 259.1)
XYZxyz(9.8138, 8.8254, 33.5274)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21529E #9E6D21
analogous
#21919E #21529E #2F219E
triadic
#21529E #9E2152 #529E21
tetradic
#21529E #9E2191 #9E6D21 #219E2F
square
#21529E #9E2191 #9E6D21 #219E2F
split-complementary
#21529E #9E2F21 #919E21
monochromatic
#0C1D39 #16386B #21529E #2C6CD1 #5C8FDD

Accessibility & contrast

On white

7.59
#21529E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#21529E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21529E
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21529E#FFFFFF#000000##FFFFFF
##21529E1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA1
Deuteranopia (green-blind)
#014F9C
Tritanopia (blue-blind)
#006470
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #21529e;
/* rgb */ color: rgb(33, 82, 158);
/* oklch */ color: oklch(44.9% 0.135 259.1);
Tailwind
colors: {
  custom: {
    50: '#7082bb',
    500: '#21529e',
    950: '#000000',
  },
}
SCSS
$custom: #21529e;
$custom-light: #7082bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21529e",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 158
  },
  "hsl": {
    "h": 216.48,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44895,
    "c": 0.13456,
    "h": 259.1
  },
  "luminance": 0.08827
}

Semantic roles & 50–950 ramp

primary
#21529E
secondary
#C19959
accent
#A63FE8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #21529E

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

Preview Lab → · Contrast checker → · Palette generator →

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