#21327F#21327F

#21327F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.132 H 269.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#21327F
RGBrgb(33, 50, 127)
HSLhsl(229, 59%, 31%)
HSVhsv(229, 74%, 50%)
CMYKcmyk(74%, 60.6%, 0%, 50.2%)
CIE-LABlab(24.12, 21.61, -45.61)
CIE-LCHlch(24.12, 50.47, 295.35°)
OKLaboklab(35.41% -0.0021 -0.1315)
OKLCHoklch(35.41% 0.132 269.1)
XYZxyz(5.5972, 4.1363, 20.5780)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21327F #7F6E21
analogous
#21617F #21327F #3F217F
triadic
#21327F #7F2132 #327F21
tetradic
#21327F #7F2161 #7F6E21 #217F3F
square
#21327F #7F2161 #7F6E21 #217F3F
split-complementary
#21327F #7F3F21 #617F21
monochromatic
#080C1E #141F4E #21327F #2E45B0 #4A63D0

Accessibility & contrast

On white

11.49
#21327F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#21327F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21327F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21327F#FFFFFF#000000##FFFFFF
##21327F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21327f;
/* rgb */ color: rgb(33, 50, 127);
/* oklch */ color: oklch(35.4% 0.132 269.1);
Tailwind
colors: {
  custom: {
    50: '#6a69a5',
    500: '#21327f',
    950: '#000000',
  },
}
SCSS
$custom: #21327f;
$custom-light: #6a69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21327f",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 127
  },
  "hsl": {
    "h": 229.149,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35411,
    "c": 0.13156,
    "h": 269.1
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#21327F
secondary
#B29F4A
accent
#C646E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21327F

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

Preview Lab → · Contrast checker → · Palette generator →

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