#21328B#21328B

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

Color values

HEX#21328B
RGBrgb(33, 50, 139)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(76.3%, 64%, 0%, 45.5%)
CIE-LABlab(25.16, 26.27, -51.41)
CIE-LCHlch(25.16, 57.73, 297.07°)
OKLaboklab(36.51% -0.0022 -0.1486)
OKLCHoklch(36.51% 0.149 269.2)
XYZxyz(6.4264, 4.4679, 24.9448)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21328B #8B7A21
analogous
#21678B #21328B #45218B
triadic
#21328B #8B2132 #328B21
tetradic
#21328B #8B2167 #8B7A21 #218B45
square
#21328B #8B2167 #8B7A21 #218B45
split-complementary
#21328B #8B4521 #678B21
monochromatic
#0A0E28 #15205A #21328B #2D44BC #5166D6

Accessibility & contrast

On white

11.09
#21328B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#21328B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21328B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21328B#FFFFFF#000000##FFFFFF
##21328B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21328b;
/* rgb */ color: rgb(33, 50, 139);
/* oklch */ color: oklch(36.5% 0.149 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d69ae',
    500: '#21328b',
    950: '#000000',
  },
}
SCSS
$custom: #21328b;
$custom-light: #6d69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21328b",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 139
  },
  "hsl": {
    "h": 230.377,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36511,
    "c": 0.14859,
    "h": 269.2
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#21328B
secondary
#B9A84F
accent
#CB43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21328B

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

Preview Lab → · Contrast checker → · Palette generator →

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