#21188B#21188B

#21188B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.177 H 273.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#21188B
RGBrgb(33, 24, 139)
HSLhsl(245, 71%, 32%)
HSVhsv(245, 83%, 55%)
CMYKcmyk(76.3%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.39, 42.15, -60.91)
CIE-LCHlch(19.39, 74.08, 304.68°)
OKLaboklab(32.37% 0.0115 -0.1762)
OKLCHoklch(32.37% 0.177 273.7)
XYZxyz(5.6125, 2.8401, 24.6735)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21188B #828B18
analogous
#18488B #21188B #5B188B
triadic
#21188B #8B2118 #188B21
tetradic
#21188B #8B1848 #828B18 #188B5B
square
#21188B #8B1848 #828B18 #188B5B
split-complementary
#21188B #8B5B18 #488B18
monochromatic
#080623 #150F57 #21188B #2D21BF #4C3FDE

Accessibility & contrast

On white

13.39
#21188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21188B
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21188B#FFFFFF#000000##FFFFFF
##21188B1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21188b;
/* rgb */ color: rgb(33, 24, 139);
/* oklch */ color: oklch(32.4% 0.177 273.7);
Tailwind
colors: {
  custom: {
    50: '#7058ae',
    500: '#21188b',
    950: '#000000',
  },
}
SCSS
$custom: #21188b;
$custom-light: #7058ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21188b",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 244.696,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.17657,
    "h": 273.7
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#21188B
secondary
#B4BE40
accent
#ED3ADF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #21188B

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

Preview Lab → · Contrast checker → · Palette generator →

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