#21288D#21288D

#21288D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.163 H 271.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#21288D
RGBrgb(33, 40, 141)
HSLhsl(236, 62%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(76.6%, 71.6%, 0%, 44.7%)
CIE-LABlab(22.87, 33.63, -56.41)
CIE-LCHlch(22.87, 65.67, 300.80°)
OKLaboklab(34.9% 0.0039 -0.1632)
OKLCHoklch(34.9% 0.163 271.4)
XYZxyz(6.1921, 3.7633, 25.5942)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21288D #8D8621
analogous
#215E8D #21288D #50218D
triadic
#21288D #8D2128 #288D21
tetradic
#21288D #8D215E #8D8621 #218D50
square
#21288D #8D215E #8D8621 #218D50
split-complementary
#21288D #8D5021 #5E8D21
monochromatic
#0A0C2A #151A5B #21288D #2D36BF #525BD6

Accessibility & contrast

On white

11.98
#21288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21288D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21288D#FFFFFF#000000##FFFFFF
##21288D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21288d;
/* rgb */ color: rgb(33, 40, 141);
/* oklch */ color: oklch(34.9% 0.163 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#21288d',
    950: '#000000',
  },
}
SCSS
$custom: #21288d;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#21288d",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 236.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.349,
    "c": 0.16329,
    "h": 271.4
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#21288D
secondary
#BAB350
accent
#DB43E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #21288D

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

Preview Lab → · Contrast checker → · Palette generator →

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