#21226C#21226C

#21226C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.125 H 275.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#21226C
RGBrgb(33, 34, 108)
HSLhsl(239, 53%, 28%)
HSVhsv(239, 69%, 42%)
CMYKcmyk(69.4%, 68.5%, 0%, 57.6%)
CIE-LABlab(18.14, 25.37, -43.20)
CIE-LCHlch(18.14, 50.10, 300.42°)
OKLaboklab(30.48% 0.0119 -0.1246)
OKLCHoklch(30.48% 0.125 275.4)
XYZxyz(3.9051, 2.5498, 14.4708)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21226C #6C6B21
analogous
#21476C #21226C #45216C
triadic
#21226C #6C2122 #226C21
tetradic
#21226C #6C2147 #6C6B21 #216C45
square
#21226C #6C2147 #6C6B21 #216C45
split-complementary
#21226C #6C4521 #476C21
monochromatic
#070717 #13133D #21226C #2F319B #4244C5

Accessibility & contrast

On white

13.91
#21226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21226C
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21226C#FFFFFF#000000##FFFFFF
##21226C1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21226c;
/* rgb */ color: rgb(33, 34, 108);
/* oklch */ color: oklch(30.5% 0.125 275.4);
Tailwind
colors: {
  custom: {
    50: '#675d97',
    500: '#21226c',
    950: '#000000',
  },
}
SCSS
$custom: #21226c;
$custom-light: #675d97;
$custom-dark: #000000;
JSON
{
  "hex": "#21226c",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 239.2,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30476,
    "c": 0.12519,
    "h": 275.4
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#21226C
secondary
#A09F49
accent
#DB4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #21226C

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

Preview Lab → · Contrast checker → · Palette generator →

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