#21188E#21188E

#21188E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.180 H 273.4°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#21188E
RGBrgb(33, 24, 142)
HSLhsl(245, 71%, 33%)
HSVhsv(245, 83%, 56%)
CMYKcmyk(76.8%, 83.1%, 0%, 44.3%)
CIE-LABlab(19.76, 43.11, -62.18)
CIE-LCHlch(19.76, 75.67, 304.74°)
OKLaboklab(32.73% 0.0107 -0.1799)
OKLCHoklch(32.73% 0.18 273.4)
XYZxyz(5.8347, 2.9290, 25.8438)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21188E #858E18
analogous
#184A8E #21188E #5C188E
triadic
#21188E #8E2118 #188E21
tetradic
#21188E #8E184A #858E18 #188E5C
square
#21188E #8E184A #858E18 #188E5C
split-complementary
#21188E #8E5C18 #4A8E18
monochromatic
#090625 #150F5A #21188E #2D21C2 #4D41DF

Accessibility & contrast

On white

13.24
#21188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21188E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21188E#FFFFFF#000000##FFFFFF
##21188E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21188e;
/* rgb */ color: rgb(33, 24, 142);
/* oklch */ color: oklch(32.7% 0.180 273.4);
Tailwind
colors: {
  custom: {
    50: '#7159b0',
    500: '#21188e',
    950: '#000000',
  },
}
SCSS
$custom: #21188e;
$custom-light: #7159b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21188e",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 244.576,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32729,
    "c": 0.18019,
    "h": 273.4
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21188E

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

Preview Lab → · Contrast checker → · Palette generator →

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