#21147C#21147C

#21147C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.162 H 276.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#21147C
RGBrgb(33, 20, 124)
HSLhsl(248, 72%, 28%)
HSVhsv(248, 84%, 49%)
CMYKcmyk(73.4%, 83.9%, 0%, 51.4%)
CIE-LABlab(16.89, 39.32, -55.58)
CIE-LCHlch(16.89, 68.09, 305.28°)
OKLaboklab(30.1% 0.0173 -0.1607)
OKLCHoklch(30.1% 0.162 276.1)
XYZxyz(4.5143, 2.2785, 19.2668)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21147C #6F7C14
analogous
#143B7C #21147C #55147C
triadic
#21147C #7C2114 #147C21
tetradic
#21147C #7C143B #6F7C14 #147C55
square
#21147C #7C143B #6F7C14 #147C55
split-complementary
#21147C #7C5514 #3B7C14
monochromatic
#07041A #130B47 #21147C #2F1DB1 #432DDD

Accessibility & contrast

On white

14.43
#21147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21147C
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21147C#FFFFFF#000000##FFFFFF
##21147C1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21147c;
/* rgb */ color: rgb(33, 20, 124);
/* oklch */ color: oklch(30.1% 0.162 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c55a3',
    500: '#21147c',
    950: '#000000',
  },
}
SCSS
$custom: #21147c;
$custom-light: #6c55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21147c",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 247.5,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30101,
    "c": 0.16159,
    "h": 276.1
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21147C

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

Preview Lab → · Contrast checker → · Palette generator →

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