#21249A#21249A

#21249A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.184 H 271.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#21249A
RGBrgb(33, 36, 154)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 60%)
CMYKcmyk(78.6%, 76.6%, 0%, 39.6%)
CIE-LABlab(23.40, 40.65, -63.57)
CIE-LCHlch(23.40, 75.46, 302.60°)
OKLaboklab(35.69% 0.0038 -0.1841)
OKLCHoklch(35.69% 0.184 271.2)
XYZxyz(7.0888, 3.9174, 30.9481)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21249A #9A9721
analogous
#21619A #21249A #5B219A
triadic
#21249A #9A2124 #249A21
tetradic
#21249A #9A2161 #9A9721 #219A5B
square
#21249A #9A2161 #9A9721 #219A5B
split-complementary
#21249A #9A5B21 #619A21
monochromatic
#0B0C35 #161868 #21249A #2C30CC #5A5DDC

Accessibility & contrast

On white

11.77
#21249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#21249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21249A
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21249A#FFFFFF#000000##FFFFFF
##21249A1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21249a;
/* rgb */ color: rgb(33, 36, 154);
/* oklch */ color: oklch(35.7% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#7360b9',
    500: '#21249a',
    950: '#000000',
  },
}
SCSS
$custom: #21249a;
$custom-light: #7360b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21249a",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 238.512,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35689,
    "c": 0.18412,
    "h": 271.2
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#21249A
secondary
#C0BD57
accent
#E440E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21249A

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

Preview Lab → · Contrast checker → · Palette generator →

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