#21147E#21147E

#21147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.164 H 275.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#21147E
RGBrgb(33, 20, 126)
HSLhsl(247, 73%, 29%)
HSVhsv(247, 84%, 49%)
CMYKcmyk(73.8%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.13, 39.96, -56.45)
CIE-LCHlch(17.13, 69.17, 305.29°)
OKLaboklab(30.34% 0.0167 -0.1632)
OKLCHoklch(30.34% 0.164 275.8)
XYZxyz(4.6420, 2.3296, 19.9396)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21147E #717E14
analogous
#143C7E #21147E #56147E
triadic
#21147E #7E2114 #147E21
tetradic
#21147E #7E143C #717E14 #147E56
square
#21147E #7E143C #717E14 #147E56
split-complementary
#21147E #7E5614 #3C7E14
monochromatic
#07041A #130C49 #21147E #2F1CB3 #442EDE

Accessibility & contrast

On white

14.32
#21147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21147E
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21147E#FFFFFF#000000##FFFFFF
##21147E1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21147e;
/* rgb */ color: rgb(33, 20, 126);
/* oklch */ color: oklch(30.3% 0.164 275.8);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#21147e',
    950: '#000000',
  },
}
SCSS
$custom: #21147e;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21147e",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 247.358,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30341,
    "c": 0.16404,
    "h": 275.8
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#21147E
secondary
#A5B33A
accent
#EF38D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21147E

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

Preview Lab → · Contrast checker → · Palette generator →

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