#21509D#21509D

#21509D is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.136 H 259.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#21509D
RGBrgb(33, 80, 157)
HSLhsl(217, 65%, 37%)
HSVhsv(217, 79%, 62%)
CMYKcmyk(79%, 49%, 0%, 38.4%)
CIE-LABlab(34.99, 12.90, -46.46)
CIE-LCHlch(34.99, 48.22, 285.51°)
OKLaboklab(44.37% -0.0239 -0.1335)
OKLCHoklch(44.37% 0.136 259.9)
XYZxyz(9.5794, 8.4939, 33.0264)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21509D #9D6E21
analogous
#218E9D #21509D #30219D
triadic
#21509D #9D2150 #509D21
tetradic
#21509D #9D218E #9D6E21 #219D30
square
#21509D #9D218E #9D6E21 #219D30
split-complementary
#21509D #9D3021 #8E9D21
monochromatic
#0C1C38 #16366A #21509D #2C6AD0 #5C8DDD

Accessibility & contrast

On white

7.78
#21509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#21509D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21509D
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21509D#FFFFFF#000000##FFFFFF
##21509D1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #21509d;
/* rgb */ color: rgb(33, 80, 157);
/* oklch */ color: oklch(44.4% 0.136 259.9);
Tailwind
colors: {
  custom: {
    50: '#7080ba',
    500: '#21509d',
    950: '#000000',
  },
}
SCSS
$custom: #21509d;
$custom-light: #7080ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21509d",
  "rgb": {
    "r": 33,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 217.258,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.13564,
    "h": 259.9
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#21509D
secondary
#C19A59
accent
#A840E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #21509D

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

Preview Lab → · Contrast checker → · Palette generator →

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