#21229B#21229B

#21229B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.187 H 271.3°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#21229B
RGBrgb(33, 34, 155)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 61%)
CMYKcmyk(78.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.11, 42.12, -64.66)
CIE-LCHlch(23.11, 77.17, 303.08°)
OKLaboklab(35.52% 0.0043 -0.1872)
OKLCHoklch(35.52% 0.187 271.3)
XYZxyz(7.1136, 3.8332, 31.3690)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21229B #9B9A21
analogous
#215F9B #21229B #5D219B
triadic
#21229B #9B2122 #229B21
tetradic
#21229B #9B215F #9B9A21 #219B5D
square
#21229B #9B215F #9B9A21 #219B5D
split-complementary
#21229B #9B5D21 #5F9B21
monochromatic
#0C0C36 #161769 #21229B #2C2DCD #5A5BDC

Accessibility & contrast

On white

11.89
#21229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21229B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21229B#FFFFFF#000000##FFFFFF
##21229B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21229b;
/* rgb */ color: rgb(33, 34, 155);
/* oklch */ color: oklch(35.5% 0.187 271.3);
Tailwind
colors: {
  custom: {
    50: '#735fba',
    500: '#21229b',
    950: '#000000',
  },
}
SCSS
$custom: #21229b;
$custom-light: #735fba;
$custom-dark: #000000;
JSON
{
  "hex": "#21229b",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 239.508,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35521,
    "c": 0.18725,
    "h": 271.3
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21229B

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

Preview Lab → · Contrast checker → · Palette generator →

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