#21529F#21529F

#21529F is a dark, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.136 H 259.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#21529F
RGBrgb(33, 82, 159)
HSLhsl(217, 66%, 38%)
HSVhsv(217, 79%, 62%)
CMYKcmyk(79.2%, 48.4%, 0%, 37.6%)
CIE-LABlab(35.71, 12.35, -46.50)
CIE-LCHlch(35.71, 48.11, 284.88°)
OKLaboklab(44.97% -0.0252 -0.1336)
OKLCHoklch(44.97% 0.136 259.3)
XYZxyz(9.9002, 8.8600, 33.9825)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21529F #9F6E21
analogous
#21919F #21529F #2F219F
triadic
#21529F #9F2152 #529F21
tetradic
#21529F #9F2191 #9F6E21 #219F2F
square
#21529F #9F2191 #9F6E21 #219F2F
split-complementary
#21529F #9F2F21 #919F21
monochromatic
#0C1E3A #16386C #21529F #2C6CD2 #5D8FDD

Accessibility & contrast

On white

7.58
#21529F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21529F
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21529F#FFFFFF#000000##FFFFFF
##21529F1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275AA2
Deuteranopia (green-blind)
#004F9D
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #21529f;
/* rgb */ color: rgb(33, 82, 159);
/* oklch */ color: oklch(45.0% 0.136 259.3);
Tailwind
colors: {
  custom: {
    50: '#7082bc',
    500: '#21529f',
    950: '#000000',
  },
}
SCSS
$custom: #21529f;
$custom-light: #7082bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21529f",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 159
  },
  "hsl": {
    "h": 216.667,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44968,
    "c": 0.13596,
    "h": 259.3
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#21529F
secondary
#C2995A
accent
#A73FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #21529F

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

Preview Lab → · Contrast checker → · Palette generator →

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