#21147A#21147A

#21147A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.159 H 276.5°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#21147A
RGBrgb(33, 20, 122)
HSLhsl(248, 72%, 28%)
HSVhsv(248, 84%, 48%)
CMYKcmyk(73%, 83.6%, 0%, 52.2%)
CIE-LABlab(16.64, 38.68, -54.71)
CIE-LCHlch(16.64, 67.00, 305.26°)
OKLaboklab(29.86% 0.0179 -0.1581)
OKLCHoklch(29.86% 0.159 276.5)
XYZxyz(4.3891, 2.2284, 18.6074)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21147A #6D7A14
analogous
#143A7A #21147A #54147A
triadic
#21147A #7A2114 #147A21
tetradic
#21147A #7A143A #6D7A14 #147A54
square
#21147A #7A143A #6D7A14 #147A54
split-complementary
#21147A #7A5414 #3A7A14
monochromatic
#07041A #130B45 #21147A #2F1DAF #422CDC

Accessibility & contrast

On white

14.52
#21147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21147A
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21147A#FFFFFF#000000##FFFFFF
##21147A1.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)
#002D7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21147a;
/* rgb */ color: rgb(33, 20, 122);
/* oklch */ color: oklch(29.9% 0.159 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c55a2',
    500: '#21147a',
    950: '#000000',
  },
}
SCSS
$custom: #21147a;
$custom-light: #6c55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21147a",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 247.647,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29862,
    "c": 0.15912,
    "h": 276.5
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#21147A
secondary
#A1B03A
accent
#EF39D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21147A

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

Preview Lab → · Contrast checker → · Palette generator →

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