#21229E#21229E

#21229E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.191 H 271.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#21229E
RGBrgb(33, 34, 158)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(79.1%, 78.5%, 0%, 38%)
CIE-LABlab(23.46, 43.13, -65.92)
CIE-LCHlch(23.46, 78.78, 303.19°)
OKLaboklab(35.86% 0.0037 -0.1909)
OKLCHoklch(35.86% 0.191 271.1)
XYZxyz(7.3687, 3.9352, 32.7123)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21229E #9E9D21
analogous
#21619E #21229E #5F219E
triadic
#21229E #9E2122 #229E21
tetradic
#21229E #9E2161 #9E9D21 #219E5F
square
#21229E #9E2161 #9E9D21 #219E5F
split-complementary
#21229E #9E5F21 #619E21
monochromatic
#0C0C39 #16176B #21229E #2C2DD1 #5C5DDD

Accessibility & contrast

On white

11.75
#21229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21229E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21229E#FFFFFF#000000##FFFFFF
##21229E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21229e;
/* rgb */ color: rgb(33, 34, 158);
/* oklch */ color: oklch(35.9% 0.191 271.1);
Tailwind
colors: {
  custom: {
    50: '#745fbc',
    500: '#21229e',
    950: '#000000',
  },
}
SCSS
$custom: #21229e;
$custom-light: #745fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#21229e",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 239.52,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35864,
    "c": 0.19092,
    "h": 271.1
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#21229E
secondary
#C1C159
accent
#E73FE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21229E

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

Preview Lab → · Contrast checker → · Palette generator →

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