#21287A#21287A

#21287A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.137 H 272.5°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#21287A
RGBrgb(33, 40, 122)
HSLhsl(235, 57%, 30%)
HSVhsv(235, 73%, 48%)
CMYKcmyk(73%, 67.2%, 0%, 52.2%)
CIE-LABlab(21.00, 26.57, -47.53)
CIE-LCHlch(21.00, 54.45, 299.21°)
OKLaboklab(32.97% 0.0059 -0.1373)
OKLCHoklch(32.97% 0.137 272.5)
XYZxyz(4.8977, 3.2456, 18.7769)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21287A #7A7321
analogous
#21547A #21287A #46217A
triadic
#21287A #7A2128 #287A21
tetradic
#21287A #7A2154 #7A7321 #217A46
square
#21287A #7A2154 #7A7321 #217A46
split-complementary
#21287A #7A4621 #547A21
monochromatic
#07081A #14184A #21287A #2E38AA #4852CD

Accessibility & contrast

On white

12.73
#21287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21287A
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21287A#FFFFFF#000000##FFFFFF
##21287A1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21287a;
/* rgb */ color: rgb(33, 40, 122);
/* oklch */ color: oklch(33.0% 0.137 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a62a1',
    500: '#21287a',
    950: '#000000',
  },
}
SCSS
$custom: #21287a;
$custom-light: #6a62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21287a",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 235.281,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32972,
    "c": 0.13741,
    "h": 272.5
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#21287A
secondary
#ADA54A
accent
#D547E1
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21287A

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

Preview Lab → · Contrast checker → · Palette generator →

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