#21289A#21289A

#21289A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.180 H 270.7°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#21289A
RGBrgb(33, 40, 154)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 60%)
CMYKcmyk(78.6%, 74%, 0%, 39.6%)
CIE-LABlab(24.24, 38.29, -62.19)
CIE-LCHlch(24.24, 73.03, 301.62°)
OKLaboklab(36.29% 0.0021 -0.1801)
OKLCHoklch(36.29% 0.18 270.7)
XYZxyz(7.2167, 4.1732, 30.9907)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21289A #9A9321
analogous
#21659A #21289A #57219A
triadic
#21289A #9A2128 #289A21
tetradic
#21289A #9A2165 #9A9321 #219A57
square
#21289A #9A2165 #9A9321 #219A57
split-complementary
#21289A #9A5721 #659A21
monochromatic
#0B0E35 #161B68 #21289A #2C35CC #5A61DC

Accessibility & contrast

On white

11.45
#21289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#21289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21289A
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21289A#FFFFFF#000000##FFFFFF
##21289A1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21289a;
/* rgb */ color: rgb(33, 40, 154);
/* oklch */ color: oklch(36.3% 0.180 270.7);
Tailwind
colors: {
  custom: {
    50: '#7263b9',
    500: '#21289a',
    950: '#000000',
  },
}
SCSS
$custom: #21289a;
$custom-light: #7263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21289a",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 236.529,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36286,
    "c": 0.18008,
    "h": 270.7
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#21289A
secondary
#C0BA57
accent
#DE40E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21289A

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

Preview Lab → · Contrast checker → · Palette generator →

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