#21288E#21288E

#21288E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.165 H 271.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#21288E
RGBrgb(33, 40, 142)
HSLhsl(236, 62%, 34%)
HSVhsv(236, 77%, 56%)
CMYKcmyk(76.8%, 71.8%, 0%, 44.3%)
CIE-LABlab(22.98, 34.00, -56.86)
CIE-LCHlch(22.98, 66.25, 300.87°)
OKLaboklab(35% 0.0038 -0.1646)
OKLCHoklch(35% 0.165 271.3)
XYZxyz(6.2668, 3.7932, 25.9878)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21288E #8E8721
analogous
#215F8E #21288E #51218E
triadic
#21288E #8E2128 #288E21
tetradic
#21288E #8E215F #8E8721 #218E51
square
#21288E #8E215F #8E8721 #218E51
split-complementary
#21288E #8E5121 #5F8E21
monochromatic
#0A0C2B #151A5C #21288E #2D36C0 #525BD7

Accessibility & contrast

On white

11.94
#21288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#21288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21288E
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21288E#FFFFFF#000000##FFFFFF
##21288E1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21288e;
/* rgb */ color: rgb(33, 40, 142);
/* oklch */ color: oklch(35.0% 0.165 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f62b0',
    500: '#21288e',
    950: '#000000',
  },
}
SCSS
$custom: #21288e;
$custom-light: #6f62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21288e",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 236.147,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.1646,
    "h": 271.3
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#21288E
secondary
#BAB450
accent
#DB42E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21288E

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

Preview Lab → · Contrast checker → · Palette generator →

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