#21328C#21328C

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

Color values

HEX#21328C
RGBrgb(33, 50, 140)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(76.4%, 64.3%, 0%, 45.1%)
CIE-LABlab(25.25, 26.66, -51.88)
CIE-LCHlch(25.25, 58.33, 297.19°)
OKLaboklab(36.61% -0.0022 -0.15)
OKLCHoklch(36.61% 0.15 269.2)
XYZxyz(6.4998, 4.4973, 25.3314)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21328C #8C7B21
analogous
#21688C #21328C #46218C
triadic
#21328C #8C2132 #328C21
tetradic
#21328C #8C2168 #8C7B21 #218C46
square
#21328C #8C2168 #8C7B21 #218C46
split-complementary
#21328C #8C4621 #688C21
monochromatic
#0A0F29 #15205A #21328C #2D44BE #5166D6

Accessibility & contrast

On white

11.05
#21328C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#21328C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21328C
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21328C#FFFFFF#000000##FFFFFF
##21328C1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21328c;
/* rgb */ color: rgb(33, 50, 140);
/* oklch */ color: oklch(36.6% 0.150 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e69ae',
    500: '#21328c',
    950: '#000000',
  },
}
SCSS
$custom: #21328c;
$custom-light: #6e69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21328c",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 140
  },
  "hsl": {
    "h": 230.467,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36606,
    "c": 0.14998,
    "h": 269.2
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21328C

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

Preview Lab → · Contrast checker → · Palette generator →

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