#21529A#21529A

#21529A is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.6% C 0.129 H 258.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#21529A
RGBrgb(33, 82, 154)
HSLhsl(216, 65%, 37%)
HSVhsv(216, 79%, 60%)
CMYKcmyk(78.6%, 46.8%, 0%, 39.6%)
CIE-LABlab(35.38, 10.37, -44.03)
CIE-LCHlch(35.38, 45.23, 283.26°)
OKLaboklab(44.61% -0.0261 -0.1263)
OKLCHoklch(44.61% 0.129 258.3)
XYZxyz(9.4751, 8.6899, 31.7435)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21529A #9A6921
analogous
#218F9A #21529A #2C219A
triadic
#21529A #9A2152 #529A21
tetradic
#21529A #9A218F #9A6921 #219A2C
square
#21529A #9A218F #9A6921 #219A2C
split-complementary
#21529A #9A2C21 #8F9A21
monochromatic
#0B1C35 #163768 #21529A #2C6DCC #5A8EDC

Accessibility & contrast

On white

7.67
#21529A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21529A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21529A#FFFFFF#000000##FFFFFF
##21529A1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599D
Deuteranopia (green-blind)
#0E4E99
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #21529a;
/* rgb */ color: rgb(33, 82, 154);
/* oklch */ color: oklch(44.6% 0.129 258.3);
Tailwind
colors: {
  custom: {
    50: '#6f82b8',
    500: '#21529a',
    950: '#000000',
  },
}
SCSS
$custom: #21529a;
$custom-light: #6f82b8;
$custom-dark: #000000;
JSON
{
  "hex": "#21529a",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 154
  },
  "hsl": {
    "h": 215.702,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44605,
    "c": 0.12898,
    "h": 258.3
  },
  "luminance": 0.08691
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21529A

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

Preview Lab → · Contrast checker → · Palette generator →

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