#21287C#21287C

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

Color values

HEX#21287C
RGBrgb(33, 40, 124)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(73.4%, 67.7%, 0%, 51.4%)
CIE-LABlab(21.19, 27.33, -48.49)
CIE-LCHlch(21.19, 55.66, 299.40°)
OKLaboklab(33.17% 0.0057 -0.1401)
OKLCHoklch(33.17% 0.14 272.3)
XYZxyz(5.0229, 3.2957, 19.4363)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21287C #7C7521
analogous
#21557C #21287C #47217C
triadic
#21287C #7C2128 #287C21
tetradic
#21287C #7C2155 #7C7521 #217C47
square
#21287C #7C2155 #7C7521 #217C47
split-complementary
#21287C #7C4721 #557C21
monochromatic
#07091B #14184C #21287C #2E38AC #4953CF

Accessibility & contrast

On white

12.66
#21287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21287C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21287C#FFFFFF#000000##FFFFFF
##21287C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21287c;
/* rgb */ color: rgb(33, 40, 124);
/* oklch */ color: oklch(33.2% 0.140 272.3);
Tailwind
colors: {
  custom: {
    50: '#6a62a3',
    500: '#21287c',
    950: '#000000',
  },
}
SCSS
$custom: #21287c;
$custom-light: #6a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21287c",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 235.385,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33169,
    "c": 0.14021,
    "h": 272.3
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21287C

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

Preview Lab → · Contrast checker → · Palette generator →

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