#21186D#21186D

#21186D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.139 H 278.0°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#21186D
RGBrgb(33, 24, 109)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 43%)
CMYKcmyk(69.7%, 78%, 0%, 57.3%)
CIE-LABlab(15.90, 32.14, -47.53)
CIE-LCHlch(15.90, 57.38, 304.07°)
OKLaboklab(28.9% 0.0193 -0.1373)
OKLCHoklch(28.9% 0.139 278)
XYZxyz(3.7133, 2.0804, 14.6709)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21186D #646D18
analogous
#18396D #21186D #4B186D
triadic
#21186D #6D2118 #186D21
tetradic
#21186D #6D1839 #646D18 #186D4B
square
#21186D #6D1839 #646D18 #186D4B
split-complementary
#21186D #6D4B18 #396D18
monochromatic
#080619 #120D3B #21186D #30239F #402ED1

Accessibility & contrast

On white

14.83
#21186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#21186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21186D
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21186D#FFFFFF#000000##FFFFFF
##21186D1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21186d;
/* rgb */ color: rgb(33, 24, 109);
/* oklch */ color: oklch(28.9% 0.139 278.0);
Tailwind
colors: {
  custom: {
    50: '#685698',
    500: '#21186d',
    950: '#000000',
  },
}
SCSS
$custom: #21186d;
$custom-light: #685698;
$custom-dark: #000000;
JSON
{
  "hex": "#21186d",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 246.353,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.289,
    "c": 0.13861,
    "h": 278
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#21186D
secondary
#98A33E
accent
#E741D5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21186D

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

Preview Lab → · Contrast checker → · Palette generator →

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