#21539E#21539E

#21539E is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.1% C 0.133 H 258.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#21539E
RGBrgb(33, 83, 158)
HSLhsl(216, 65%, 37%)
HSVhsv(216, 79%, 62%)
CMYKcmyk(79.1%, 47.5%, 0%, 38%)
CIE-LABlab(35.94, 11.29, -45.54)
CIE-LCHlch(35.94, 46.91, 283.93°)
OKLaboklab(45.12% -0.0262 -0.1307)
OKLCHoklch(45.12% 0.133 258.7)
XYZxyz(9.8898, 8.9773, 33.5527)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21539E #9E6C21
analogous
#21929E #21539E #2E219E
triadic
#21539E #9E2153 #539E21
tetradic
#21539E #9E2192 #9E6C21 #219E2E
square
#21539E #9E2192 #9E6C21 #219E2E
split-complementary
#21539E #9E2E21 #929E21
monochromatic
#0C1E39 #16386B #21539E #2C6ED1 #5C90DD

Accessibility & contrast

On white

7.51
#21539E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#21539E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21539E
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21539E#FFFFFF#000000##FFFFFF
##21539E1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5BA1
Deuteranopia (green-blind)
#074F9D
Tritanopia (blue-blind)
#006571
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #21539e;
/* rgb */ color: rgb(33, 83, 158);
/* oklch */ color: oklch(45.1% 0.133 258.7);
Tailwind
colors: {
  custom: {
    50: '#7082bb',
    500: '#21539e',
    950: '#000000',
  },
}
SCSS
$custom: #21539e;
$custom-light: #7082bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21539e",
  "rgb": {
    "r": 33,
    "g": 83,
    "b": 158
  },
  "hsl": {
    "h": 216,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45122,
    "c": 0.13333,
    "h": 258.7
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#21539E
secondary
#C19859
accent
#A53FE8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #21539E

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

Preview Lab → · Contrast checker → · Palette generator →

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