#21287D#21287D

#21287D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.142 H 272.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#21287D
RGBrgb(33, 40, 125)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 74%, 49%)
CMYKcmyk(73.6%, 68%, 0%, 51%)
CIE-LABlab(21.29, 27.70, -48.97)
CIE-LCHlch(21.29, 56.26, 299.50°)
OKLaboklab(33.27% 0.0056 -0.1415)
OKLCHoklch(33.27% 0.142 272.3)
XYZxyz(5.0864, 3.3211, 19.7710)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21287D #7D7621
analogous
#21567D #21287D #48217D
triadic
#21287D #7D2128 #287D21
tetradic
#21287D #7D2156 #7D7621 #217D48
square
#21287D #7D2156 #7D7621 #217D48
split-complementary
#21287D #7D4821 #567D21
monochromatic
#07091C #14194D #21287D #2E37AD #4954CF

Accessibility & contrast

On white

12.62
#21287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21287D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21287D#FFFFFF#000000##FFFFFF
##21287D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21287d;
/* rgb */ color: rgb(33, 40, 125);
/* oklch */ color: oklch(33.3% 0.142 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b62a3',
    500: '#21287d',
    950: '#000000',
  },
}
SCSS
$custom: #21287d;
$custom-light: #6b62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21287d",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 235.435,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.1416,
    "h": 272.3
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#21287D
secondary
#B0A84A
accent
#D646E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21287D

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

Preview Lab → · Contrast checker → · Palette generator →

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