#21229D#21229D

#21229D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.190 H 271.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#21229D
RGBrgb(33, 34, 157)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(79%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.34, 42.80, -65.50)
CIE-LCHlch(23.34, 78.24, 303.16°)
OKLaboklab(35.75% 0.0039 -0.1897)
OKLCHoklch(35.75% 0.19 271.2)
XYZxyz(7.2830, 3.9009, 32.2609)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21229D #9D9C21
analogous
#21609D #21229D #5E219D
triadic
#21229D #9D2122 #229D21
tetradic
#21229D #9D2160 #9D9C21 #219D5E
square
#21229D #9D2160 #9D9C21 #219D5E
split-complementary
#21229D #9D5E21 #609D21
monochromatic
#0C0C38 #16176A #21229D #2C2DD0 #5C5DDD

Accessibility & contrast

On white

11.80
#21229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#21229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21229D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21229D#FFFFFF#000000##FFFFFF
##21229D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21229d;
/* rgb */ color: rgb(33, 34, 157);
/* oklch */ color: oklch(35.8% 0.190 271.2);
Tailwind
colors: {
  custom: {
    50: '#745fbb',
    500: '#21229d',
    950: '#000000',
  },
}
SCSS
$custom: #21229d;
$custom-light: #745fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#21229d",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 239.516,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3575,
    "c": 0.18969,
    "h": 271.2
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21229D

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

Preview Lab → · Contrast checker → · Palette generator →

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