#21146E#21146E

#21146E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.5% C 0.144 H 278.6°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#21146E
RGBrgb(33, 20, 110)
HSLhsl(249, 69%, 25%)
HSVhsv(249, 82%, 43%)
CMYKcmyk(70%, 81.8%, 0%, 56.9%)
CIE-LABlab(15.22, 34.76, -49.31)
CIE-LCHlch(15.22, 60.33, 305.18°)
OKLaboklab(28.45% 0.0215 -0.1424)
OKLCHoklch(28.45% 0.144 278.6)
XYZxyz(3.6909, 1.9491, 14.9305)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21146E #616E14
analogous
#14346E #21146E #4E146E
triadic
#21146E #6E2114 #146E21
tetradic
#21146E #6E1434 #616E14 #146E4E
square
#21146E #6E1434 #616E14 #146E4E
split-complementary
#21146E #6E4E14 #346E14
monochromatic
#08051A #110B3A #21146E #311DA2 #4027D6

Accessibility & contrast

On white

15.11
#21146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#21146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21146E
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21146E#FFFFFF#000000##FFFFFF
##21146E1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00226C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21146e;
/* rgb */ color: rgb(33, 20, 110);
/* oklch */ color: oklch(28.5% 0.144 278.6);
Tailwind
colors: {
  custom: {
    50: '#695499',
    500: '#21146e',
    950: '#000000',
  },
}
SCSS
$custom: #21146e;
$custom-light: #695499;
$custom-dark: #000000;
JSON
{
  "hex": "#21146e",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 248.667,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28452,
    "c": 0.14403,
    "h": 278.6
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#21146E
secondary
#95A539
accent
#EC3CD3
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21146E

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

Preview Lab → · Contrast checker → · Palette generator →

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