#21147F#21147F

#21147F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.165 H 275.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#21147F
RGBrgb(33, 20, 127)
HSLhsl(247, 73%, 29%)
HSVhsv(247, 84%, 50%)
CMYKcmyk(74%, 84.3%, 0%, 50.2%)
CIE-LABlab(17.25, 40.28, -56.89)
CIE-LCHlch(17.25, 69.71, 305.30°)
OKLaboklab(30.46% 0.0164 -0.1645)
OKLCHoklch(30.46% 0.165 275.7)
XYZxyz(4.7069, 2.3555, 20.2812)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21147F #727F14
analogous
#143D7F #21147F #57147F
triadic
#21147F #7F2114 #147F21
tetradic
#21147F #7F143D #727F14 #147F57
square
#21147F #7F143D #727F14 #147F57
split-complementary
#21147F #7F5714 #3D7F14
monochromatic
#07041A #130C4A #21147F #2F1CB4 #442FDE

Accessibility & contrast

On white

14.27
#21147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21147F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21147F#FFFFFF#000000##FFFFFF
##21147F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21147f;
/* rgb */ color: rgb(33, 20, 127);
/* oklch */ color: oklch(30.5% 0.165 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#21147f',
    950: '#000000',
  },
}
SCSS
$custom: #21147f;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21147f",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 247.29,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30462,
    "c": 0.16527,
    "h": 275.7
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21147F

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

Preview Lab → · Contrast checker → · Palette generator →

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