#21189D#21189D

#21189D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.198 H 272.0°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#21189D
RGBrgb(33, 24, 157)
HSLhsl(244, 73%, 35%)
HSVhsv(244, 85%, 62%)
CMYKcmyk(79%, 84.7%, 0%, 38.4%)
CIE-LABlab(21.62, 47.82, -68.36)
CIE-LCHlch(21.62, 83.43, 304.97°)
OKLaboklab(34.55% 0.0068 -0.1978)
OKLCHoklch(34.55% 0.198 272)
XYZxyz(7.0376, 3.4101, 32.1791)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21189D #949D18
analogous
#18519D #21189D #63189D
triadic
#21189D #9D2118 #189D21
tetradic
#21189D #9D1851 #949D18 #189D63
square
#21189D #9D1851 #949D18 #189D63
split-complementary
#21189D #9D6318 #519D18
monochromatic
#0B0833 #161068 #21189D #2C20D2 #564CE4

Accessibility & contrast

On white

12.48
#21189D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21189D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21189D
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21189D#FFFFFF#000000##FFFFFF
##21189D1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002D9B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21189d;
/* rgb */ color: rgb(33, 24, 157);
/* oklch */ color: oklch(34.5% 0.198 272.0);
Tailwind
colors: {
  custom: {
    50: '#745abb',
    500: '#21189d',
    950: '#000000',
  },
}
SCSS
$custom: #21189d;
$custom-light: #745abb;
$custom-dark: #000000;
JSON
{
  "hex": "#21189d",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 157
  },
  "hsl": {
    "h": 244.06,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34549,
    "c": 0.19789,
    "h": 272
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#21189D
secondary
#BDC54B
accent
#F038E4
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21189D

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

Preview Lab → · Contrast checker → · Palette generator →

#21189D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva