#21189B#21189B

#21189B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.3% C 0.196 H 272.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#21189B
RGBrgb(33, 24, 155)
HSLhsl(244, 73%, 35%)
HSVhsv(244, 85%, 61%)
CMYKcmyk(78.7%, 84.5%, 0%, 39.2%)
CIE-LABlab(21.37, 47.20, -67.55)
CIE-LCHlch(21.37, 82.41, 304.94°)
OKLaboklab(34.3% 0.0073 -0.1954)
OKLCHoklch(34.3% 0.196 272.1)
XYZxyz(6.8682, 3.3424, 31.2872)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21189B #929B18
analogous
#18519B #21189B #62189B
triadic
#21189B #9B2118 #189B21
tetradic
#21189B #9B1851 #929B18 #189B62
square
#21189B #9B1851 #929B18 #189B62
split-complementary
#21189B #9B6218 #519B18
monochromatic
#0A0831 #161066 #21189B #2C20D0 #554AE3

Accessibility & contrast

On white

12.59
#21189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#21189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21189B
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21189B#FFFFFF#000000##FFFFFF
##21189B1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399F
Deuteranopia (green-blind)
#002D99
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21189b;
/* rgb */ color: rgb(33, 24, 155);
/* oklch */ color: oklch(34.3% 0.196 272.1);
Tailwind
colors: {
  custom: {
    50: '#745aba',
    500: '#21189b',
    950: '#000000',
  },
}
SCSS
$custom: #21189b;
$custom-light: #745aba;
$custom-dark: #000000;
JSON
{
  "hex": "#21189b",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 244.122,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34304,
    "c": 0.19557,
    "h": 272.1
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#21189B
secondary
#BCC54A
accent
#F038E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21189B

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

Preview Lab → · Contrast checker → · Palette generator →

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