#21188A#21188A

#21188A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.175 H 273.9°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#21188A
RGBrgb(33, 24, 138)
HSLhsl(245, 70%, 32%)
HSVhsv(245, 83%, 54%)
CMYKcmyk(76.1%, 82.6%, 0%, 45.9%)
CIE-LABlab(19.27, 41.83, -60.49)
CIE-LCHlch(19.27, 73.54, 304.67°)
OKLaboklab(32.25% 0.0118 -0.175)
OKLCHoklch(32.25% 0.175 273.9)
XYZxyz(5.5398, 2.8110, 24.2905)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21188A #818A18
analogous
#18488A #21188A #5A188A
triadic
#21188A #8A2118 #188A21
tetradic
#21188A #8A1848 #818A18 #188A5A
square
#21188A #8A1848 #818A18 #188A5A
split-complementary
#21188A #8A5A18 #488A18
monochromatic
#080622 #150F56 #21188A #2D21BE #4B3FDE

Accessibility & contrast

On white

13.44
#21188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21188A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21188A#FFFFFF#000000##FFFFFF
##21188A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21188a;
/* rgb */ color: rgb(33, 24, 138);
/* oklch */ color: oklch(32.3% 0.175 273.9);
Tailwind
colors: {
  custom: {
    50: '#7058ad',
    500: '#21188a',
    950: '#000000',
  },
}
SCSS
$custom: #21188a;
$custom-light: #7058ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21188a",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 244.737,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3225,
    "c": 0.17536,
    "h": 273.9
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#21188A
secondary
#B4BD40
accent
#ED3BDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #21188A

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

Preview Lab → · Contrast checker → · Palette generator →

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