#21229A#21229A

#21229A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.186 H 271.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#21229A
RGBrgb(33, 34, 154)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 60%)
CMYKcmyk(78.6%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.00, 41.79, -64.23)
CIE-LCHlch(23.00, 76.63, 303.05°)
OKLaboklab(35.41% 0.0045 -0.186)
OKLCHoklch(35.41% 0.186 271.4)
XYZxyz(7.0300, 3.7997, 30.9285)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21229A #9A9921
analogous
#215F9A #21229A #5D219A
triadic
#21229A #9A2122 #229A21
tetradic
#21229A #9A215F #9A9921 #219A5D
square
#21229A #9A215F #9A9921 #219A5D
split-complementary
#21229A #9A5D21 #5F9A21
monochromatic
#0B0C35 #161768 #21229A #2C2DCC #5A5BDC

Accessibility & contrast

On white

11.93
#21229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#21229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21229A
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21229A#FFFFFF#000000##FFFFFF
##21229A1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21229a;
/* rgb */ color: rgb(33, 34, 154);
/* oklch */ color: oklch(35.4% 0.186 271.4);
Tailwind
colors: {
  custom: {
    50: '#735fb9',
    500: '#21229a',
    950: '#000000',
  },
}
SCSS
$custom: #21229a;
$custom-light: #735fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#21229a",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 239.504,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35407,
    "c": 0.18602,
    "h": 271.4
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#21229A
secondary
#C0BF57
accent
#E640E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21229A

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

Preview Lab → · Contrast checker → · Palette generator →

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