#21226B#21226B

#21226B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.124 H 275.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#21226B
RGBrgb(33, 34, 107)
HSLhsl(239, 53%, 27%)
HSVhsv(239, 69%, 42%)
CMYKcmyk(69.2%, 68.2%, 0%, 58%)
CIE-LABlab(18.05, 24.99, -42.70)
CIE-LCHlch(18.05, 49.48, 300.34°)
OKLaboklab(30.38% 0.012 -0.1232)
OKLCHoklch(30.38% 0.124 275.6)
XYZxyz(3.8522, 2.5286, 14.1921)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21226B #6B6A21
analogous
#21476B #21226B #45216B
triadic
#21226B #6B2122 #226B21
tetradic
#21226B #6B2147 #6B6A21 #216B45
square
#21226B #6B2147 #6B6A21 #216B45
split-complementary
#21226B #6B4521 #476B21
monochromatic
#070717 #13133C #21226B #2F319A #4244C5

Accessibility & contrast

On white

13.95
#21226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#21226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21226B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21226B#FFFFFF#000000##FFFFFF
##21226B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21226b;
/* rgb */ color: rgb(33, 34, 107);
/* oklch */ color: oklch(30.4% 0.124 275.6);
Tailwind
colors: {
  custom: {
    50: '#675d96',
    500: '#21226b',
    950: '#000000',
  },
}
SCSS
$custom: #21226b;
$custom-light: #675d96;
$custom-dark: #000000;
JSON
{
  "hex": "#21226b",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 239.189,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30378,
    "c": 0.12375,
    "h": 275.6
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#21226B
secondary
#9F9E49
accent
#DA4CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #21226B

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

Preview Lab → · Contrast checker → · Palette generator →

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