#21529C#21529C

#21529C is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.7% C 0.132 H 258.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#21529C
RGBrgb(33, 82, 156)
HSLhsl(216, 65%, 37%)
HSVhsv(216, 79%, 61%)
CMYKcmyk(78.8%, 47.4%, 0%, 38.8%)
CIE-LABlab(35.51, 11.16, -45.02)
CIE-LCHlch(35.51, 46.39, 283.93°)
OKLaboklab(44.75% -0.0257 -0.1292)
OKLCHoklch(44.75% 0.132 258.7)
XYZxyz(9.6430, 8.7571, 32.6281)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21529C #9C6B21
analogous
#218F9C #21529C #2E219C
triadic
#21529C #9C2152 #529C21
tetradic
#21529C #9C218F #9C6B21 #219C2E
square
#21529C #9C218F #9C6B21 #219C2E
split-complementary
#21529C #9C2E21 #8F9C21
monochromatic
#0C1D37 #163769 #21529C #2C6DCF #5B8FDC

Accessibility & contrast

On white

7.63
#21529C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#21529C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21529C
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21529C#FFFFFF#000000##FFFFFF
##21529C1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5A9F
Deuteranopia (green-blind)
#084E9B
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #21529c;
/* rgb */ color: rgb(33, 82, 156);
/* oklch */ color: oklch(44.7% 0.132 258.7);
Tailwind
colors: {
  custom: {
    50: '#7082ba',
    500: '#21529c',
    950: '#000000',
  },
}
SCSS
$custom: #21529c;
$custom-light: #7082ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21529c",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 156
  },
  "hsl": {
    "h": 216.098,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44749,
    "c": 0.13177,
    "h": 258.7
  },
  "luminance": 0.08758
}

Semantic roles & 50–950 ramp

primary
#21529C
secondary
#C19758
accent
#A540E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #21529C

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

Preview Lab → · Contrast checker → · Palette generator →

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