#21188C#21188C

#21188C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.178 H 273.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#21188C
RGBrgb(33, 24, 140)
HSLhsl(245, 71%, 32%)
HSVhsv(245, 83%, 55%)
CMYKcmyk(76.4%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.51, 42.47, -61.34)
CIE-LCHlch(19.51, 74.61, 304.70°)
OKLaboklab(32.49% 0.0113 -0.1774)
OKLCHoklch(32.49% 0.178 273.6)
XYZxyz(5.6859, 2.8695, 25.0601)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21188C #838C18
analogous
#18498C #21188C #5B188C
triadic
#21188C #8C2118 #188C21
tetradic
#21188C #8C1849 #838C18 #188C5B
square
#21188C #8C1849 #838C18 #188C5B
split-complementary
#21188C #8C5B18 #498C18
monochromatic
#080624 #150F58 #21188C #2D21C0 #4C40DE

Accessibility & contrast

On white

13.34
#21188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21188C
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21188C#FFFFFF#000000##FFFFFF
##21188C1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21188c;
/* rgb */ color: rgb(33, 24, 140);
/* oklch */ color: oklch(32.5% 0.178 273.6);
Tailwind
colors: {
  custom: {
    50: '#7058af',
    500: '#21188c',
    950: '#000000',
  },
}
SCSS
$custom: #21188c;
$custom-light: #7058af;
$custom-dark: #000000;
JSON
{
  "hex": "#21188c",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 244.655,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32489,
    "c": 0.17778,
    "h": 273.6
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#21188C
secondary
#B5BF41
accent
#ED3AE0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #21188C

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

Preview Lab → · Contrast checker → · Palette generator →

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