#21186B#21186B

#21186B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.136 H 278.3°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#21186B
RGBrgb(33, 24, 107)
HSLhsl(247, 63%, 26%)
HSVhsv(247, 78%, 42%)
CMYKcmyk(69.2%, 77.6%, 0%, 58%)
CIE-LABlab(15.68, 31.45, -46.58)
CIE-LCHlch(15.68, 56.20, 304.03°)
OKLaboklab(28.68% 0.0197 -0.1345)
OKLCHoklch(28.68% 0.136 278.3)
XYZxyz(3.6068, 2.0378, 14.1103)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21186B #626B18
analogous
#18386B #21186B #4A186B
triadic
#21186B #6B2118 #186B21
tetradic
#21186B #6B1838 #626B18 #186B4A
square
#21186B #6B1838 #626B18 #186B4A
split-complementary
#21186B #6B4A18 #386B18
monochromatic
#080619 #120D39 #21186B #30239D #402ECF

Accessibility & contrast

On white

14.92
#21186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#21186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21186B
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21186B#FFFFFF#000000##FFFFFF
##21186B1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21186b;
/* rgb */ color: rgb(33, 24, 107);
/* oklch */ color: oklch(28.7% 0.136 278.3);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#21186b',
    950: '#000000',
  },
}
SCSS
$custom: #21186b;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#21186b",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 246.506,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28679,
    "c": 0.13595,
    "h": 278.3
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#21186B
secondary
#96A13E
accent
#E641D5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21186B

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

Preview Lab → · Contrast checker → · Palette generator →

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