#21329D#21329D

#21329D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.173 H 269.0°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#21329D
RGBrgb(33, 50, 157)
HSLhsl(232, 65%, 37%)
HSVhsv(232, 79%, 62%)
CMYKcmyk(79%, 68.2%, 0%, 38.4%)
CIE-LABlab(26.84, 33.09, -59.73)
CIE-LCHlch(26.84, 68.28, 298.99°)
OKLaboklab(38.26% -0.0031 -0.1729)
OKLCHoklch(38.26% 0.173 269)
XYZxyz(7.8515, 5.0380, 32.4504)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21329D #9D8C21
analogous
#21709D #21329D #4E219D
triadic
#21329D #9D2132 #329D21
tetradic
#21329D #9D2170 #9D8C21 #219D4E
square
#21329D #9D2170 #9D8C21 #219D4E
split-complementary
#21329D #9D4E21 #709D21
monochromatic
#0C1238 #16226A #21329D #2C42D0 #5C6DDD

Accessibility & contrast

On white

10.46
#21329D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#21329D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21329D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21329D#FFFFFF#000000##FFFFFF
##21329D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21329d;
/* rgb */ color: rgb(33, 50, 157);
/* oklch */ color: oklch(38.3% 0.173 269.0);
Tailwind
colors: {
  custom: {
    50: '#726abb',
    500: '#21329d',
    950: '#000000',
  },
}
SCSS
$custom: #21329d;
$custom-light: #726abb;
$custom-dark: #000000;
JSON
{
  "hex": "#21329d",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 157
  },
  "hsl": {
    "h": 231.774,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38259,
    "c": 0.17293,
    "h": 269
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#21329D
secondary
#C1B359
accent
#D140E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21329D

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

Preview Lab → · Contrast checker → · Palette generator →

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