#21228E#21228E

#21228E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.171 H 272.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#21228E
RGBrgb(33, 34, 142)
HSLhsl(239, 62%, 34%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(76.8%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.65, 37.68, -59.04)
CIE-LCHlch(21.65, 70.04, 302.54°)
OKLaboklab(34.06% 0.0068 -0.1709)
OKLCHoklch(34.06% 0.171 272.3)
XYZxyz(6.0801, 3.4197, 25.9256)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21228E #8E8D21
analogous
#21588E #21228E #57218E
triadic
#21228E #8E2122 #228E21
tetradic
#21228E #8E2158 #8E8D21 #218E57
square
#21228E #8E2158 #8E8D21 #218E57
split-complementary
#21228E #8E5721 #588E21
monochromatic
#0A0A2B #15165C #21228E #2D2EC0 #5254D7

Accessibility & contrast

On white

12.47
#21228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21228E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21228E#FFFFFF#000000##FFFFFF
##21228E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21228e;
/* rgb */ color: rgb(33, 34, 142);
/* oklch */ color: oklch(34.1% 0.171 272.3);
Tailwind
colors: {
  custom: {
    50: '#705eb0',
    500: '#21228e',
    950: '#000000',
  },
}
SCSS
$custom: #21228e;
$custom-light: #705eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21228e",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 239.45,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34058,
    "c": 0.17102,
    "h": 272.3
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#21228E
secondary
#BAB950
accent
#E442E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21228E

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

Preview Lab → · Contrast checker → · Palette generator →

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