#21186A#21186A

#21186A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.135 H 278.5°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#21186A
RGBrgb(33, 24, 106)
HSLhsl(247, 63%, 25%)
HSVhsv(247, 77%, 42%)
CMYKcmyk(68.9%, 77.4%, 0%, 58.4%)
CIE-LABlab(15.58, 31.10, -46.11)
CIE-LCHlch(15.58, 55.62, 304.00°)
OKLaboklab(28.57% 0.02 -0.1331)
OKLCHoklch(28.57% 0.135 278.5)
XYZxyz(3.5545, 2.0169, 13.8349)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21186A #616A18
analogous
#18386A #21186A #4A186A
triadic
#21186A #6A2118 #186A21
tetradic
#21186A #6A1838 #616A18 #186A4A
square
#21186A #6A1838 #616A18 #186A4A
split-complementary
#21186A #6A4A18 #386A18
monochromatic
#080619 #110D38 #21186A #31239C #402FCE

Accessibility & contrast

On white

14.96
#21186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#21186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21186A
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21186A#FFFFFF#000000##FFFFFF
##21186A1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21186a;
/* rgb */ color: rgb(33, 24, 106);
/* oklch */ color: oklch(28.6% 0.135 278.5);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#21186a',
    950: '#000000',
  },
}
SCSS
$custom: #21186a;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#21186a",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 246.585,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28569,
    "c": 0.13461,
    "h": 278.5
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#21186A
secondary
#95A03E
accent
#E642D4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21186A

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

Preview Lab → · Contrast checker → · Palette generator →

#21186A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva