#21229F#21229F

#21229F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.192 H 271.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#21229F
RGBrgb(33, 34, 159)
HSLhsl(240, 66%, 38%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(79.2%, 78.6%, 0%, 37.6%)
CIE-LABlab(23.57, 43.46, -66.34)
CIE-LCHlch(23.57, 79.31, 303.23°)
OKLaboklab(35.98% 0.0035 -0.1921)
OKLCHoklch(35.98% 0.192 271.1)
XYZxyz(7.4551, 3.9698, 33.1675)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21229F #9F9E21
analogous
#21619F #21229F #5F219F
triadic
#21229F #9F2122 #229F21
tetradic
#21229F #9F2161 #9F9E21 #219F5F
square
#21229F #9F2161 #9F9E21 #219F5F
split-complementary
#21229F #9F5F21 #619F21
monochromatic
#0C0C3A #16176C #21229F #2C2DD2 #5D5EDD

Accessibility & contrast

On white

11.70
#21229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#21229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21229F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21229F#FFFFFF#000000##FFFFFF
##21229F1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21229f;
/* rgb */ color: rgb(33, 34, 159);
/* oklch */ color: oklch(36.0% 0.192 271.1);
Tailwind
colors: {
  custom: {
    50: '#745fbd',
    500: '#21229f',
    950: '#000000',
  },
}
SCSS
$custom: #21229f;
$custom-light: #745fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#21229f",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 239.524,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.19212,
    "h": 271.1
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#21229F
secondary
#C2C15A
accent
#E73FE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21229F

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

Preview Lab → · Contrast checker → · Palette generator →

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