#21226F#21226F

#21226F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.129 H 275.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#21226F
RGBrgb(33, 34, 111)
HSLhsl(239, 54%, 28%)
HSVhsv(239, 70%, 44%)
CMYKcmyk(70.3%, 69.4%, 0%, 56.5%)
CIE-LABlab(18.43, 26.49, -44.68)
CIE-LCHlch(18.43, 51.94, 300.66°)
OKLaboklab(30.77% 0.0116 -0.1289)
OKLCHoklch(30.77% 0.129 275.1)
XYZxyz(4.0675, 2.6147, 15.3262)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21226F #6F6E21
analogous
#21496F #21226F #47216F
triadic
#21226F #6F2122 #226F21
tetradic
#21226F #6F2149 #6F6E21 #216F47
square
#21226F #6F2149 #6F6E21 #216F47
split-complementary
#21226F #6F4721 #496F21
monochromatic
#070718 #131440 #21226F #2F309E #4345C7

Accessibility & contrast

On white

13.79
#21226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#21226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21226F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21226F#FFFFFF#000000##FFFFFF
##21226F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21226f;
/* rgb */ color: rgb(33, 34, 111);
/* oklch */ color: oklch(30.8% 0.129 275.1);
Tailwind
colors: {
  custom: {
    50: '#685d99',
    500: '#21226f',
    950: '#000000',
  },
}
SCSS
$custom: #21226f;
$custom-light: #685d99;
$custom-dark: #000000;
JSON
{
  "hex": "#21226f",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 239.231,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30774,
    "c": 0.12947,
    "h": 275.1
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#21226F
secondary
#A3A149
accent
#DC4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21226F

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

Preview Lab → · Contrast checker → · Palette generator →

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