#21117E#21117E

#21117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.166 H 276.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#21117E
RGBrgb(33, 17, 126)
HSLhsl(249, 76%, 28%)
HSVhsv(249, 87%, 49%)
CMYKcmyk(73.8%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.65, 41.37, -57.25)
CIE-LCHlch(16.65, 70.63, 305.85°)
OKLaboklab(30.01% 0.0178 -0.1654)
OKLCHoklch(30.01% 0.166 276.2)
XYZxyz(4.5923, 2.2302, 19.9231)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21117E #6E7E11
analogous
#11387E #21117E #57117E
triadic
#21117E #7E2111 #117E21
tetradic
#21117E #7E1138 #6E7E11 #117E57
square
#21117E #7E1138 #6E7E11 #117E57
split-complementary
#21117E #7E5711 #387E11
monochromatic
#07041B #130A48 #21117E #2F18B4 #4327E2

Accessibility & contrast

On white

14.52
#21117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21117E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21117E#FFFFFF#000000##FFFFFF
##21117E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21117e;
/* rgb */ color: rgb(33, 17, 126);
/* oklch */ color: oklch(30.0% 0.166 276.2);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#21117e',
    950: '#000000',
  },
}
SCSS
$custom: #21117e;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21117e",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 248.807,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30012,
    "c": 0.1664,
    "h": 276.2
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#21117E
secondary
#A2B437
accent
#F335D7
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21117E

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

Preview Lab → · Contrast checker → · Palette generator →

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