#21228A#21228A

#21228A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.166 H 272.6°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#21228A
RGBrgb(33, 34, 138)
HSLhsl(239, 61%, 34%)
HSVhsv(239, 76%, 54%)
CMYKcmyk(76.1%, 75.4%, 0%, 45.9%)
CIE-LABlab(21.21, 36.27, -57.27)
CIE-LCHlch(21.21, 67.79, 302.35°)
OKLaboklab(33.62% 0.0075 -0.1657)
OKLCHoklch(33.62% 0.166 272.6)
XYZxyz(5.7851, 3.3018, 24.3722)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21228A #8A8921
analogous
#21568A #21228A #54218A
triadic
#21228A #8A2122 #228A21
tetradic
#21228A #8A2156 #8A8921 #218A54
square
#21228A #8A2156 #8A8921 #218A54
split-complementary
#21228A #8A5421 #568A21
monochromatic
#090A27 #151659 #21228A #2D2EBB #5051D5

Accessibility & contrast

On white

12.65
#21228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21228A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21228A#FFFFFF#000000##FFFFFF
##21228A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21228a;
/* rgb */ color: rgb(33, 34, 138);
/* oklch */ color: oklch(33.6% 0.166 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ead',
    500: '#21228a',
    950: '#000000',
  },
}
SCSS
$custom: #21228a;
$custom-light: #6f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#21228a",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 239.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33617,
    "c": 0.16591,
    "h": 272.6
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#21228A
secondary
#B9B84E
accent
#E343E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #21228A

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

Preview Lab → · Contrast checker → · Palette generator →

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