#21287B#21287B

#21287B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.139 H 272.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#21287B
RGBrgb(33, 40, 123)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 73%, 48%)
CMYKcmyk(73.2%, 67.5%, 0%, 51.8%)
CIE-LABlab(21.10, 26.95, -48.01)
CIE-LCHlch(21.10, 55.05, 299.31°)
OKLaboklab(33.07% 0.0058 -0.1387)
OKLCHoklch(33.07% 0.139 272.4)
XYZxyz(4.9599, 3.2705, 19.1049)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21287B #7B7421
analogous
#21557B #21287B #47217B
triadic
#21287B #7B2128 #287B21
tetradic
#21287B #7B2155 #7B7421 #217B47
square
#21287B #7B2155 #7B7421 #217B47
split-complementary
#21287B #7B4721 #557B21
monochromatic
#07091A #14184B #21287B #2E38AB #4853CE

Accessibility & contrast

On white

12.69
#21287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#21287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21287B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21287B#FFFFFF#000000##FFFFFF
##21287B1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21287b;
/* rgb */ color: rgb(33, 40, 123);
/* oklch */ color: oklch(33.1% 0.139 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a62a2',
    500: '#21287b',
    950: '#000000',
  },
}
SCSS
$custom: #21287b;
$custom-light: #6a62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21287b",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 235.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.13881,
    "h": 272.4
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#21287B
secondary
#AEA64A
accent
#D547E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21287B

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

Preview Lab → · Contrast checker → · Palette generator →

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