#21187E#21187E

#21187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 275.4°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#21187E
RGBrgb(33, 24, 126)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(73.8%, 81%, 0%, 50.6%)
CIE-LABlab(17.84, 37.90, -55.28)
CIE-LCHlch(17.84, 67.03, 304.44°)
OKLaboklab(30.84% 0.015 -0.1598)
OKLCHoklch(30.84% 0.161 275.4)
XYZxyz(4.7185, 2.4825, 19.9651)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21187E #757E18
analogous
#18427E #21187E #54187E
triadic
#21187E #7E2118 #187E21
tetradic
#21187E #7E1842 #757E18 #187E54
square
#21187E #7E1842 #757E18 #187E54
split-complementary
#21187E #7E5418 #427E18
monochromatic
#07051A #140E4B #21187E #2E22B1 #4637D9

Accessibility & contrast

On white

14.03
#21187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#21187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21187E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21187E#FFFFFF#000000##FFFFFF
##21187E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21187e;
/* rgb */ color: rgb(33, 24, 126);
/* oklch */ color: oklch(30.8% 0.161 275.4);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#21187e',
    950: '#000000',
  },
}
SCSS
$custom: #21187e;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21187e",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 245.294,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30835,
    "c": 0.16054,
    "h": 275.4
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#21187E
secondary
#A8B23F
accent
#EB3DDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21187E

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

Preview Lab → · Contrast checker → · Palette generator →

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