#21327D#21327D

#21327D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.129 H 269.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#21327D
RGBrgb(33, 50, 125)
HSLhsl(229, 58%, 31%)
HSVhsv(229, 74%, 49%)
CMYKcmyk(73.6%, 60%, 0%, 51%)
CIE-LABlab(23.95, 20.83, -44.62)
CIE-LCHlch(23.95, 49.24, 295.02°)
OKLaboklab(35.23% -0.0021 -0.1286)
OKLCHoklch(35.23% 0.129 269)
XYZxyz(5.4682, 4.0847, 19.8983)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21327D #7D6C21
analogous
#21607D #21327D #3E217D
triadic
#21327D #7D2132 #327D21
tetradic
#21327D #7D2160 #7D6C21 #217D3E
square
#21327D #7D2160 #7D6C21 #217D3E
split-complementary
#21327D #7D3E21 #607D21
monochromatic
#070B1C #141F4D #21327D #2E45AD #4962CF

Accessibility & contrast

On white

11.56
#21327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#21327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21327D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21327D#FFFFFF#000000##FFFFFF
##21327D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21327d;
/* rgb */ color: rgb(33, 50, 125);
/* oklch */ color: oklch(35.2% 0.129 269.0);
Tailwind
colors: {
  custom: {
    50: '#6a69a3',
    500: '#21327d',
    950: '#000000',
  },
}
SCSS
$custom: #21327d;
$custom-light: #6a69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21327d",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 228.913,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35234,
    "c": 0.12866,
    "h": 269
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#21327D
secondary
#B09D4A
accent
#C546E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21327D

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

Preview Lab → · Contrast checker → · Palette generator →

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