#21509C#21509C

#21509C is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.3% C 0.134 H 259.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#21509C
RGBrgb(33, 80, 156)
HSLhsl(217, 65%, 37%)
HSVhsv(217, 79%, 61%)
CMYKcmyk(78.8%, 48.7%, 0%, 38.8%)
CIE-LABlab(34.92, 12.50, -45.97)
CIE-LCHlch(34.92, 47.64, 285.21°)
OKLaboklab(44.3% -0.024 -0.1321)
OKLCHoklch(44.3% 0.134 259.7)
XYZxyz(9.4944, 8.4599, 32.5786)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21509C #9C6D21
analogous
#218E9C #21509C #30219C
triadic
#21509C #9C2150 #509C21
tetradic
#21509C #9C218E #9C6D21 #219C30
square
#21509C #9C218E #9C6D21 #219C30
split-complementary
#21509C #9C3021 #8E9C21
monochromatic
#0C1C37 #163669 #21509C #2C6ACF #5B8CDC

Accessibility & contrast

On white

7.80
#21509C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21509C
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21509C#FFFFFF#000000##FFFFFF
##21509C1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21509c;
/* rgb */ color: rgb(33, 80, 156);
/* oklch */ color: oklch(44.3% 0.134 259.7);
Tailwind
colors: {
  custom: {
    50: '#7080ba',
    500: '#21509c',
    950: '#000000',
  },
}
SCSS
$custom: #21509c;
$custom-light: #7080ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21509c",
  "rgb": {
    "r": 33,
    "g": 80,
    "b": 156
  },
  "hsl": {
    "h": 217.073,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44296,
    "c": 0.13424,
    "h": 259.7
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21509C

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

Preview Lab → · Contrast checker → · Palette generator →

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