#21228F#21228F

#21228F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.172 H 272.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#21228F
RGBrgb(33, 34, 143)
HSLhsl(239, 63%, 35%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(76.9%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.76, 38.02, -59.48)
CIE-LCHlch(21.76, 70.60, 302.59°)
OKLaboklab(34.17% 0.0066 -0.1722)
OKLCHoklch(34.17% 0.172 272.2)
XYZxyz(6.1555, 3.4499, 26.3228)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21228F #8F8E21
analogous
#21598F #21228F #57218F
triadic
#21228F #8F2122 #228F21
tetradic
#21228F #8F2159 #8F8E21 #218F57
square
#21228F #8F2159 #8F8E21 #218F57
split-complementary
#21228F #8F5721 #598F21
monochromatic
#0A0A2C #16165D #21228F #2C2EC1 #5354D7

Accessibility & contrast

On white

12.42
#21228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#21228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21228F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21228F#FFFFFF#000000##FFFFFF
##21228F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21228f;
/* rgb */ color: rgb(33, 34, 143);
/* oklch */ color: oklch(34.2% 0.172 272.2);
Tailwind
colors: {
  custom: {
    50: '#705fb1',
    500: '#21228f',
    950: '#000000',
  },
}
SCSS
$custom: #21228f;
$custom-light: #705fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#21228f",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 239.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3417,
    "c": 0.1723,
    "h": 272.2
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#21228F
secondary
#BBBA51
accent
#E442E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21228F

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

Preview Lab → · Contrast checker → · Palette generator →

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