#21147B#21147B

#21147B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.160 H 276.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#21147B
RGBrgb(33, 20, 123)
HSLhsl(248, 72%, 28%)
HSVhsv(248, 84%, 48%)
CMYKcmyk(73.2%, 83.7%, 0%, 51.8%)
CIE-LABlab(16.76, 39.00, -55.15)
CIE-LCHlch(16.76, 67.54, 305.27°)
OKLaboklab(29.98% 0.0176 -0.1594)
OKLCHoklch(29.98% 0.16 276.3)
XYZxyz(4.4513, 2.2533, 18.9354)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21147B #6E7B14
analogous
#143A7B #21147B #54147B
triadic
#21147B #7B2114 #147B21
tetradic
#21147B #7B143A #6E7B14 #147B54
square
#21147B #7B143A #6E7B14 #147B54
split-complementary
#21147B #7B5414 #3A7B14
monochromatic
#07041A #130B46 #21147B #2F1DB0 #432DDD

Accessibility & contrast

On white

14.47
#21147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21147B
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21147B#FFFFFF#000000##FFFFFF
##21147B1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21147b;
/* rgb */ color: rgb(33, 20, 123);
/* oklch */ color: oklch(30.0% 0.160 276.3);
Tailwind
colors: {
  custom: {
    50: '#6c55a2',
    500: '#21147b',
    950: '#000000',
  },
}
SCSS
$custom: #21147b;
$custom-light: #6c55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21147b",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 247.573,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29982,
    "c": 0.16036,
    "h": 276.3
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#21147B
secondary
#A2B13A
accent
#EF39D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21147B

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

Preview Lab → · Contrast checker → · Palette generator →

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