#21148E#21148E

#21148E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 273.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#21148E
RGBrgb(33, 20, 142)
HSLhsl(246, 75%, 32%)
HSVhsv(246, 86%, 56%)
CMYKcmyk(76.8%, 85.9%, 0%, 44.3%)
CIE-LABlab(19.12, 44.98, -63.23)
CIE-LCHlch(19.12, 77.60, 305.43°)
OKLaboklab(32.29% 0.012 -0.1828)
OKLCHoklch(32.29% 0.183 273.7)
XYZxyz(5.7582, 2.7760, 25.8183)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21148E #818E14
analogous
#14448E #21148E #5E148E
triadic
#21148E #8E2114 #148E21
tetradic
#21148E #8E1444 #818E14 #148E5E
square
#21148E #8E1444 #818E14 #148E5E
split-complementary
#21148E #8E5E14 #448E14
monochromatic
#080523 #150C58 #21148E #2D1CC4 #4B39E3

Accessibility & contrast

On white

13.50
#21148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21148E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21148E#FFFFFF#000000##FFFFFF
##21148E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21148e;
/* rgb */ color: rgb(33, 20, 142);
/* oklch */ color: oklch(32.3% 0.183 273.7);
Tailwind
colors: {
  custom: {
    50: '#7157b0',
    500: '#21148e',
    950: '#000000',
  },
}
SCSS
$custom: #21148e;
$custom-light: #7157b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21148e",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 246.393,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.18323,
    "h": 273.7
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#21148E
secondary
#B4C23C
accent
#F236DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21148E

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

Preview Lab → · Contrast checker → · Palette generator →

#21148E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva