#21226A#21226A

#21226A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.122 H 275.7°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#21226A
RGBrgb(33, 34, 106)
HSLhsl(239, 53%, 27%)
HSVhsv(239, 69%, 42%)
CMYKcmyk(68.9%, 67.9%, 0%, 58.4%)
CIE-LABlab(17.95, 24.62, -42.20)
CIE-LCHlch(17.95, 48.86, 300.25°)
OKLaboklab(30.28% 0.0121 -0.1217)
OKLCHoklch(30.28% 0.122 275.7)
XYZxyz(3.7999, 2.5077, 13.9167)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21226A #6A6921
analogous
#21476A #21226A #45216A
triadic
#21226A #6A2122 #226A21
tetradic
#21226A #6A2147 #6A6921 #216A45
square
#21226A #6A2147 #6A6921 #216A45
split-complementary
#21226A #6A4521 #476A21
monochromatic
#070717 #12133B #21226A #303199 #4143C4

Accessibility & contrast

On white

13.99
#21226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#21226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21226A
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21226A#FFFFFF#000000##FFFFFF
##21226A1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21226a;
/* rgb */ color: rgb(33, 34, 106);
/* oklch */ color: oklch(30.3% 0.122 275.7);
Tailwind
colors: {
  custom: {
    50: '#675d95',
    500: '#21226a',
    950: '#000000',
  },
}
SCSS
$custom: #21226a;
$custom-light: #675d95;
$custom-dark: #000000;
JSON
{
  "hex": "#21226a",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 239.178,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3028,
    "c": 0.12231,
    "h": 275.7
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#21226A
secondary
#9E9D49
accent
#DA4CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #21226A

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

Preview Lab → · Contrast checker → · Palette generator →

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