#21146B#21146B

#21146B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.140 H 279.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#21146B
RGBrgb(33, 20, 107)
HSLhsl(249, 69%, 25%)
HSVhsv(249, 81%, 42%)
CMYKcmyk(69.2%, 81.3%, 0%, 58%)
CIE-LABlab(14.87, 33.76, -47.92)
CIE-LCHlch(14.87, 58.62, 305.16°)
OKLaboklab(28.11% 0.0223 -0.1384)
OKLCHoklch(28.11% 0.14 279.2)
XYZxyz(3.5303, 1.8849, 14.0848)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21146B #5E6B14
analogous
#14326B #21146B #4D146B
triadic
#21146B #6B2114 #146B21
tetradic
#21146B #6B1432 #5E6B14 #146B4D
square
#21146B #6B1432 #5E6B14 #146B4D
split-complementary
#21146B #6B4D14 #326B14
monochromatic
#08051A #110A37 #21146B #311E9F #4127D2

Accessibility & contrast

On white

15.25
#21146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#21146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21146B
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21146B#FFFFFF#000000##FFFFFF
##21146B1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21146b;
/* rgb */ color: rgb(33, 20, 107);
/* oklch */ color: oklch(28.1% 0.140 279.2);
Tailwind
colors: {
  custom: {
    50: '#685496',
    500: '#21146b',
    950: '#000000',
  },
}
SCSS
$custom: #21146b;
$custom-light: #685496;
$custom-dark: #000000;
JSON
{
  "hex": "#21146b",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 248.966,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28106,
    "c": 0.14017,
    "h": 279.2
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#21146B
secondary
#92A239
accent
#EB3CD1
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21146B

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

Preview Lab → · Contrast checker → · Palette generator →

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