#21327A#21327A

#21327A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.124 H 269.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#21327A
RGBrgb(33, 50, 122)
HSLhsl(229, 57%, 30%)
HSVhsv(229, 73%, 48%)
CMYKcmyk(73%, 59%, 0%, 52.2%)
CIE-LABlab(23.70, 19.65, -43.12)
CIE-LCHlch(23.70, 47.39, 294.49°)
OKLaboklab(34.97% -0.0022 -0.1242)
OKLCHoklch(34.97% 0.124 269)
XYZxyz(5.2794, 4.0091, 18.9042)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21327A #7A6921
analogous
#215E7A #21327A #3C217A
triadic
#21327A #7A2132 #327A21
tetradic
#21327A #7A215E #7A6921 #217A3C
square
#21327A #7A215E #7A6921 #217A3C
split-complementary
#21327A #7A3C21 #5E7A21
monochromatic
#070B1A #141E4A #21327A #2E46AA #4861CD

Accessibility & contrast

On white

11.65
#21327A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#21327A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21327A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21327A#FFFFFF#000000##FFFFFF
##21327A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21327a;
/* rgb */ color: rgb(33, 50, 122);
/* oklch */ color: oklch(35.0% 0.124 269.0);
Tailwind
colors: {
  custom: {
    50: '#6969a1',
    500: '#21327a',
    950: '#000000',
  },
}
SCSS
$custom: #21327a;
$custom-light: #6969a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21327a",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 122
  },
  "hsl": {
    "h": 228.539,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.12426,
    "h": 269
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#21327A
secondary
#AD9A4A
accent
#C347E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21327A

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

Preview Lab → · Contrast checker → · Palette generator →

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