#21529B#21529B

#21529B is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.130 H 258.6°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#21529B
RGBrgb(33, 82, 155)
HSLhsl(216, 65%, 37%)
HSVhsv(216, 79%, 61%)
CMYKcmyk(78.7%, 47.1%, 0%, 39.2%)
CIE-LABlab(35.45, 10.77, -44.53)
CIE-LCHlch(35.45, 45.81, 283.59°)
OKLaboklab(44.68% -0.0259 -0.1278)
OKLCHoklch(44.68% 0.13 258.6)
XYZxyz(9.5587, 8.7234, 32.1840)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21529B #9B6A21
analogous
#218F9B #21529B #2D219B
triadic
#21529B #9B2152 #529B21
tetradic
#21529B #9B218F #9B6A21 #219B2D
square
#21529B #9B218F #9B6A21 #219B2D
split-complementary
#21529B #9B2D21 #8F9B21
monochromatic
#0C1D36 #163769 #21529B #2C6DCD #5A8EDC

Accessibility & contrast

On white

7.65
#21529B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#21529B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21529B
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21529B#FFFFFF#000000##FFFFFF
##21529B1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599E
Deuteranopia (green-blind)
#0B4E9A
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #21529b;
/* rgb */ color: rgb(33, 82, 155);
/* oklch */ color: oklch(44.7% 0.130 258.6);
Tailwind
colors: {
  custom: {
    50: '#6f82b9',
    500: '#21529b',
    950: '#000000',
  },
}
SCSS
$custom: #21529b;
$custom-light: #6f82b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21529b",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 155
  },
  "hsl": {
    "h": 215.902,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44677,
    "c": 0.13037,
    "h": 258.6
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#21529B
secondary
#C09658
accent
#A440E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #21529B

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

Preview Lab → · Contrast checker → · Palette generator →

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