#21229C#21229C

#21229C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.188 H 271.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#21229C
RGBrgb(33, 34, 156)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 61%)
CMYKcmyk(78.8%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.23, 42.46, -65.08)
CIE-LCHlch(23.23, 77.71, 303.12°)
OKLaboklab(35.64% 0.0041 -0.1884)
OKLCHoklch(35.64% 0.188 271.3)
XYZxyz(7.1979, 3.8669, 31.8131)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21229C #9C9B21
analogous
#21609C #21229C #5E219C
triadic
#21229C #9C2122 #229C21
tetradic
#21229C #9C2160 #9C9B21 #219C5E
square
#21229C #9C2160 #9C9B21 #219C5E
split-complementary
#21229C #9C5E21 #609C21
monochromatic
#0C0C37 #161769 #21229C #2C2DCF #5B5CDC

Accessibility & contrast

On white

11.84
#21229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#21229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21229C
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21229C#FFFFFF#000000##FFFFFF
##21229C1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21229c;
/* rgb */ color: rgb(33, 34, 156);
/* oklch */ color: oklch(35.6% 0.188 271.3);
Tailwind
colors: {
  custom: {
    50: '#735fbb',
    500: '#21229c',
    950: '#000000',
  },
}
SCSS
$custom: #21229c;
$custom-light: #735fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#21229c",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 239.512,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35635,
    "c": 0.18848,
    "h": 271.3
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#21229C
secondary
#C1C058
accent
#E740E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21229C

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

Preview Lab → · Contrast checker → · Palette generator →

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