#21147D#21147D

#21147D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.163 H 276.0°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#21147D
RGBrgb(33, 20, 125)
HSLhsl(247, 72%, 28%)
HSVhsv(247, 84%, 49%)
CMYKcmyk(73.6%, 84%, 0%, 51%)
CIE-LABlab(17.01, 39.64, -56.02)
CIE-LCHlch(17.01, 68.63, 305.29°)
OKLaboklab(30.22% 0.017 -0.1619)
OKLCHoklch(30.22% 0.163 276)
XYZxyz(4.5778, 2.3039, 19.6015)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21147D #707D14
analogous
#143B7D #21147D #55147D
triadic
#21147D #7D2114 #147D21
tetradic
#21147D #7D143B #707D14 #147D55
square
#21147D #7D143B #707D14 #147D55
split-complementary
#21147D #7D5514 #3B7D14
monochromatic
#07041A #130C48 #21147D #2F1CB2 #442EDE

Accessibility & contrast

On white

14.38
#21147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21147D
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21147D#FFFFFF#000000##FFFFFF
##21147D1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21147d;
/* rgb */ color: rgb(33, 20, 125);
/* oklch */ color: oklch(30.2% 0.163 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d55a4',
    500: '#21147d',
    950: '#000000',
  },
}
SCSS
$custom: #21147d;
$custom-light: #6d55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21147d",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 247.429,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30221,
    "c": 0.16282,
    "h": 276
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#21147D
secondary
#A4B23A
accent
#EF39D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21147D

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

Preview Lab → · Contrast checker → · Palette generator →

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