#21327E#21327E

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

Color values

HEX#21327E
RGBrgb(33, 50, 126)
HSLhsl(229, 58%, 31%)
HSVhsv(229, 74%, 49%)
CMYKcmyk(73.8%, 60.3%, 0%, 50.6%)
CIE-LABlab(24.03, 21.22, -45.11)
CIE-LCHlch(24.03, 49.85, 295.19°)
OKLaboklab(35.32% -0.0021 -0.1301)
OKLCHoklch(35.32% 0.13 269.1)
XYZxyz(5.5324, 4.1103, 20.2364)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21327E #7E6D21
analogous
#21607E #21327E #3E217E
triadic
#21327E #7E2132 #327E21
tetradic
#21327E #7E2160 #7E6D21 #217E3E
square
#21327E #7E2160 #7E6D21 #217E3E
split-complementary
#21327E #7E3E21 #607E21
monochromatic
#080C1D #141F4E #21327E #2E45AE #4A62D0

Accessibility & contrast

On white

11.52
#21327E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21327E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21327E#FFFFFF#000000##FFFFFF
##21327E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21327e;
/* rgb */ color: rgb(33, 50, 126);
/* oklch */ color: oklch(35.3% 0.130 269.1);
Tailwind
colors: {
  custom: {
    50: '#6a69a4',
    500: '#21327e',
    950: '#000000',
  },
}
SCSS
$custom: #21327e;
$custom-light: #6a69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21327e",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 126
  },
  "hsl": {
    "h": 229.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.13011,
    "h": 269.1
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#21327E
secondary
#B19E4A
accent
#C546E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21327E

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

Preview Lab → · Contrast checker → · Palette generator →

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