#21186E#21186E

#21186E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.140 H 277.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#21186E
RGBrgb(33, 24, 110)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 43%)
CMYKcmyk(70%, 78.2%, 0%, 56.9%)
CIE-LABlab(16.01, 32.49, -48.00)
CIE-LCHlch(16.01, 57.96, 304.09°)
OKLaboklab(29.01% 0.019 -0.1386)
OKLCHoklch(29.01% 0.14 277.8)
XYZxyz(3.7674, 2.1021, 14.9560)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21186E #656E18
analogous
#183A6E #21186E #4C186E
triadic
#21186E #6E2118 #186E21
tetradic
#21186E #6E183A #656E18 #186E4C
square
#21186E #6E183A #656E18 #186E4C
split-complementary
#21186E #6E4C18 #3A6E18
monochromatic
#080519 #120D3C #21186E #3023A0 #402FD2

Accessibility & contrast

On white

14.78
#21186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21186E
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21186E#FFFFFF#000000##FFFFFF
##21186E1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21186e;
/* rgb */ color: rgb(33, 24, 110);
/* oklch */ color: oklch(29.0% 0.140 277.8);
Tailwind
colors: {
  custom: {
    50: '#695699',
    500: '#21186e',
    950: '#000000',
  },
}
SCSS
$custom: #21186e;
$custom-light: #695699;
$custom-dark: #000000;
JSON
{
  "hex": "#21186e",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 246.279,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29011,
    "c": 0.13994,
    "h": 277.8
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#21186E
secondary
#99A43E
accent
#E741D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21186E

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

Preview Lab → · Contrast checker → · Palette generator →

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