#21328D#21328D

#21328D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.151 H 269.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#21328D
RGBrgb(33, 50, 141)
HSLhsl(231, 62%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(76.6%, 64.5%, 0%, 44.7%)
CIE-LABlab(25.34, 27.04, -52.36)
CIE-LCHlch(25.34, 58.93, 297.32°)
OKLaboklab(36.7% -0.0022 -0.1513)
OKLCHoklch(36.7% 0.151 269.2)
XYZxyz(6.5739, 4.5269, 25.7215)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21328D #8D7C21
analogous
#21688D #21328D #46218D
triadic
#21328D #8D2132 #328D21
tetradic
#21328D #8D2168 #8D7C21 #218D46
square
#21328D #8D2168 #8D7C21 #218D46
split-complementary
#21328D #8D4621 #688D21
monochromatic
#0A0F2A #15205B #21328D #2D44BF #5267D6

Accessibility & contrast

On white

11.02
#21328D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21328D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21328D#FFFFFF#000000##FFFFFF
##21328D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21328d;
/* rgb */ color: rgb(33, 50, 141);
/* oklch */ color: oklch(36.7% 0.151 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e69af',
    500: '#21328d',
    950: '#000000',
  },
}
SCSS
$custom: #21328d;
$custom-light: #6e69af;
$custom-dark: #000000;
JSON
{
  "hex": "#21328d",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 141
  },
  "hsl": {
    "h": 230.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.367,
    "c": 0.15136,
    "h": 269.2
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#21328D
secondary
#BAA950
accent
#CC43E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21328D

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

Preview Lab → · Contrast checker → · Palette generator →

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