#21227F#21227F

#21227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.151 H 273.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#21227F
RGBrgb(33, 34, 127)
HSLhsl(239, 59%, 31%)
HSVhsv(239, 74%, 50%)
CMYKcmyk(74%, 73.2%, 0%, 50.2%)
CIE-LABlab(20.04, 32.36, -52.28)
CIE-LCHlch(20.04, 61.48, 301.75°)
OKLaboklab(32.43% 0.0094 -0.1512)
OKLCHoklch(32.43% 0.151 273.6)
XYZxyz(5.0287, 2.9992, 20.3884)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21227F #7F7E21
analogous
#21517F #21227F #4F217F
triadic
#21227F #7F2122 #227F21
tetradic
#21227F #7F2151 #7F7E21 #217F4F
square
#21227F #7F2151 #7F7E21 #217F4F
split-complementary
#21227F #7F4F21 #517F21
monochromatic
#08081E #14154E #21227F #2E2FB0 #4A4CD0

Accessibility & contrast

On white

13.13
#21227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#21227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21227F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21227F#FFFFFF#000000##FFFFFF
##21227F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21227f;
/* rgb */ color: rgb(33, 34, 127);
/* oklch */ color: oklch(32.4% 0.151 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c5ea5',
    500: '#21227f',
    950: '#000000',
  },
}
SCSS
$custom: #21227f;
$custom-light: #6c5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#21227f",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 239.362,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32427,
    "c": 0.15148,
    "h": 273.6
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#21227F
secondary
#B2B14A
accent
#E046E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #21227F

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

Preview Lab → · Contrast checker → · Palette generator →

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