#21328E#21328E

#21328E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.153 H 269.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#21328E
RGBrgb(33, 50, 142)
HSLhsl(231, 62%, 34%)
HSVhsv(231, 77%, 56%)
CMYKcmyk(76.8%, 64.8%, 0%, 44.3%)
CIE-LABlab(25.43, 27.43, -52.83)
CIE-LCHlch(25.43, 59.52, 297.44°)
OKLaboklab(36.8% -0.0023 -0.1527)
OKLCHoklch(36.8% 0.153 269.2)
XYZxyz(6.6486, 4.5568, 26.1151)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21328E #8E7D21
analogous
#21698E #21328E #47218E
triadic
#21328E #8E2132 #328E21
tetradic
#21328E #8E2169 #8E7D21 #218E47
square
#21328E #8E2169 #8E7D21 #218E47
split-complementary
#21328E #8E4721 #698E21
monochromatic
#0A0F2B #15215C #21328E #2D43C0 #5267D7

Accessibility & contrast

On white

10.99
#21328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#21328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21328E
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21328E#FFFFFF#000000##FFFFFF
##21328E1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21328e;
/* rgb */ color: rgb(33, 50, 142);
/* oklch */ color: oklch(36.8% 0.153 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e69b0',
    500: '#21328e',
    950: '#000000',
  },
}
SCSS
$custom: #21328e;
$custom-light: #6e69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21328e",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 230.642,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.15274,
    "h": 269.2
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#21328E
secondary
#BAAA50
accent
#CC42E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21328E

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

Preview Lab → · Contrast checker → · Palette generator →

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