#21288B#21288B

#21288B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.161 H 271.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#21288B
RGBrgb(33, 40, 139)
HSLhsl(236, 62%, 34%)
HSVhsv(236, 76%, 55%)
CMYKcmyk(76.3%, 71.2%, 0%, 45.5%)
CIE-LABlab(22.67, 32.90, -55.50)
CIE-LCHlch(22.67, 64.52, 300.66°)
OKLaboklab(34.69% 0.0042 -0.1606)
OKLCHoklch(34.69% 0.161 271.5)
XYZxyz(6.0446, 3.7044, 24.8175)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21288B #8B8421
analogous
#215D8B #21288B #4F218B
triadic
#21288B #8B2128 #288B21
tetradic
#21288B #8B215D #8B8421 #218B4F
square
#21288B #8B215D #8B8421 #218B4F
split-complementary
#21288B #8B4F21 #5D8B21
monochromatic
#0A0C28 #151A5A #21288B #2D36BC #515AD6

Accessibility & contrast

On white

12.06
#21288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#21288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21288B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21288B#FFFFFF#000000##FFFFFF
##21288B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21288b;
/* rgb */ color: rgb(33, 40, 139);
/* oklch */ color: oklch(34.7% 0.161 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e62ae',
    500: '#21288b',
    950: '#000000',
  },
}
SCSS
$custom: #21288b;
$custom-light: #6e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21288b",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 236.038,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.16064,
    "h": 271.5
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#21288B
secondary
#B9B24F
accent
#DA43E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21288B

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

Preview Lab → · Contrast checker → · Palette generator →

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