#21328F#21328F

#21328F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.154 H 269.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#21328F
RGBrgb(33, 50, 143)
HSLhsl(231, 63%, 35%)
HSVhsv(231, 77%, 56%)
CMYKcmyk(76.9%, 65%, 0%, 43.9%)
CIE-LABlab(25.52, 27.81, -53.30)
CIE-LCHlch(25.52, 60.11, 297.55°)
OKLaboklab(36.89% -0.0023 -0.1541)
OKLCHoklch(36.89% 0.154 269.1)
XYZxyz(6.7240, 4.5870, 26.5123)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21328F #8F7E21
analogous
#21698F #21328F #47218F
triadic
#21328F #8F2132 #328F21
tetradic
#21328F #8F2169 #8F7E21 #218F47
square
#21328F #8F2169 #8F7E21 #218F47
split-complementary
#21328F #8F4721 #698F21
monochromatic
#0A0F2C #16215D #21328F #2C43C1 #5368D7

Accessibility & contrast

On white

10.95
#21328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#21328F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21328F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21328F#FFFFFF#000000##FFFFFF
##21328F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21328f;
/* rgb */ color: rgb(33, 50, 143);
/* oklch */ color: oklch(36.9% 0.154 269.1);
Tailwind
colors: {
  custom: {
    50: '#6e69b1',
    500: '#21328f',
    950: '#000000',
  },
}
SCSS
$custom: #21328f;
$custom-light: #6e69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21328f",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 230.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3689,
    "c": 0.15412,
    "h": 269.1
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#21328F
secondary
#BBAB51
accent
#CC42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21328F

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

Preview Lab → · Contrast checker → · Palette generator →

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