#21226D#21226D

#21226D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.127 H 275.3°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#21226D
RGBrgb(33, 34, 109)
HSLhsl(239, 54%, 28%)
HSVhsv(239, 70%, 43%)
CMYKcmyk(69.7%, 68.8%, 0%, 57.3%)
CIE-LABlab(18.24, 25.74, -43.69)
CIE-LCHlch(18.24, 50.71, 300.50°)
OKLaboklab(30.58% 0.0118 -0.1261)
OKLCHoklch(30.58% 0.127 275.3)
XYZxyz(3.9586, 2.5712, 14.7527)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21226D #6D6C21
analogous
#21486D #21226D #46216D
triadic
#21226D #6D2122 #226D21
tetradic
#21226D #6D2148 #6D6C21 #216D46
square
#21226D #6D2148 #6D6C21 #216D46
split-complementary
#21226D #6D4621 #486D21
monochromatic
#070717 #13133E #21226D #2F319C #4244C6

Accessibility & contrast

On white

13.87
#21226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21226D
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21226D#FFFFFF#000000##FFFFFF
##21226D1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21226d;
/* rgb */ color: rgb(33, 34, 109);
/* oklch */ color: oklch(30.6% 0.127 275.3);
Tailwind
colors: {
  custom: {
    50: '#675d98',
    500: '#21226d',
    950: '#000000',
  },
}
SCSS
$custom: #21226d;
$custom-light: #675d98;
$custom-dark: #000000;
JSON
{
  "hex": "#21226d",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 239.211,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30575,
    "c": 0.12662,
    "h": 275.3
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21226D

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

Preview Lab → · Contrast checker → · Palette generator →

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