#21146D#21146D

#21146D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.143 H 278.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#21146D
RGBrgb(33, 20, 109)
HSLhsl(249, 69%, 25%)
HSVhsv(249, 82%, 43%)
CMYKcmyk(69.7%, 81.7%, 0%, 57.3%)
CIE-LABlab(15.10, 34.43, -48.85)
CIE-LCHlch(15.10, 59.76, 305.17°)
OKLaboklab(28.34% 0.0217 -0.1411)
OKLCHoklch(28.34% 0.143 278.8)
XYZxyz(3.6368, 1.9275, 14.6454)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21146D #606D14
analogous
#14336D #21146D #4D146D
triadic
#21146D #6D2114 #146D21
tetradic
#21146D #6D1433 #606D14 #146D4D
square
#21146D #6D1433 #606D14 #146D4D
split-complementary
#21146D #6D4D14 #336D14
monochromatic
#08051A #110B39 #21146D #311DA1 #4027D4

Accessibility & contrast

On white

15.16
#21146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21146D
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21146D#FFFFFF#000000##FFFFFF
##21146D1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296F
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21146d;
/* rgb */ color: rgb(33, 20, 109);
/* oklch */ color: oklch(28.3% 0.143 278.8);
Tailwind
colors: {
  custom: {
    50: '#695498',
    500: '#21146d',
    950: '#000000',
  },
}
SCSS
$custom: #21146d;
$custom-light: #695498;
$custom-dark: #000000;
JSON
{
  "hex": "#21146d",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 248.764,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28336,
    "c": 0.14275,
    "h": 278.8
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#21146D
secondary
#94A439
accent
#EC3CD2
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21146D

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

Preview Lab → · Contrast checker → · Palette generator →

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