#21509B#21509B

#21509B is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.133 H 259.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#21509B
RGBrgb(33, 80, 155)
HSLhsl(217, 65%, 37%)
HSVhsv(217, 79%, 61%)
CMYKcmyk(78.7%, 48.4%, 0%, 39.2%)
CIE-LABlab(34.85, 12.10, -45.48)
CIE-LCHlch(34.85, 47.06, 284.90°)
OKLaboklab(44.22% -0.0242 -0.1306)
OKLCHoklch(44.22% 0.133 259.5)
XYZxyz(9.4101, 8.4261, 32.1344)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21509B #9B6C21
analogous
#218D9B #21509B #2F219B
triadic
#21509B #9B2150 #509B21
tetradic
#21509B #9B218D #9B6C21 #219B2F
square
#21509B #9B218D #9B6C21 #219B2F
split-complementary
#21509B #9B2F21 #8D9B21
monochromatic
#0C1C36 #163669 #21509B #2C6ACD #5A8CDC

Accessibility & contrast

On white

7.82
#21509B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#21509B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21509B
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21509B#FFFFFF#000000##FFFFFF
##21509B1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #21509b;
/* rgb */ color: rgb(33, 80, 155);
/* oklch */ color: oklch(44.2% 0.133 259.5);
Tailwind
colors: {
  custom: {
    50: '#6f80b9',
    500: '#21509b',
    950: '#000000',
  },
}
SCSS
$custom: #21509b;
$custom-light: #6f80b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21509b",
  "rgb": {
    "r": 33,
    "g": 80,
    "b": 155
  },
  "hsl": {
    "h": 216.885,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44222,
    "c": 0.13284,
    "h": 259.5
  },
  "luminance": 0.08427
}

Semantic roles & 50–950 ramp

primary
#21509B
secondary
#C09858
accent
#A740E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #21509B

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

Preview Lab → · Contrast checker → · Palette generator →

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