#21186C#21186C

#21186C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.137 H 278.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#21186C
RGBrgb(33, 24, 108)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 42%)
CMYKcmyk(69.4%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.79, 31.80, -47.05)
CIE-LCHlch(15.79, 56.79, 304.05°)
OKLaboklab(28.79% 0.0195 -0.1359)
OKLCHoklch(28.79% 0.137 278.2)
XYZxyz(3.6597, 2.0590, 14.3890)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21186C #636C18
analogous
#18396C #21186C #4B186C
triadic
#21186C #6C2118 #186C21
tetradic
#21186C #6C1839 #636C18 #186C4B
square
#21186C #6C1839 #636C18 #186C4B
split-complementary
#21186C #6C4B18 #396C18
monochromatic
#080619 #120D3A #21186C #30239E #402ED0

Accessibility & contrast

On white

14.87
#21186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21186C
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21186C#FFFFFF#000000##FFFFFF
##21186C1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21186c;
/* rgb */ color: rgb(33, 24, 108);
/* oklch */ color: oklch(28.8% 0.137 278.2);
Tailwind
colors: {
  custom: {
    50: '#685697',
    500: '#21186c',
    950: '#000000',
  },
}
SCSS
$custom: #21186c;
$custom-light: #685697;
$custom-dark: #000000;
JSON
{
  "hex": "#21186c",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 246.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28789,
    "c": 0.13728,
    "h": 278.2
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#21186C
secondary
#97A23E
accent
#E741D5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21186C

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

Preview Lab → · Contrast checker → · Palette generator →

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