#21188F#21188F

#21188F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.181 H 273.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#21188F
RGBrgb(33, 24, 143)
HSLhsl(245, 71%, 33%)
HSVhsv(245, 83%, 56%)
CMYKcmyk(76.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.88, 43.43, -62.60)
CIE-LCHlch(19.88, 76.19, 304.75°)
OKLaboklab(32.85% 0.0105 -0.1811)
OKLCHoklch(32.85% 0.181 273.3)
XYZxyz(5.9101, 2.9592, 26.2410)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21188F #868F18
analogous
#184A8F #21188F #5D188F
triadic
#21188F #8F2118 #188F21
tetradic
#21188F #8F184A #868F18 #188F5D
square
#21188F #8F184A #868F18 #188F5D
split-complementary
#21188F #8F5D18 #4A8F18
monochromatic
#090626 #150F5B #21188F #2D21C3 #4E42DF

Accessibility & contrast

On white

13.19
#21188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#21188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21188F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21188F#FFFFFF#000000##FFFFFF
##21188F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21188f;
/* rgb */ color: rgb(33, 24, 143);
/* oklch */ color: oklch(32.8% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#7159b1',
    500: '#21188f',
    950: '#000000',
  },
}
SCSS
$custom: #21188f;
$custom-light: #7159b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21188f",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 244.538,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32849,
    "c": 0.18139,
    "h": 273.3
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#21188F
secondary
#B7C043
accent
#EE3AE0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21188F

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

Preview Lab → · Contrast checker → · Palette generator →

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