#21318D#21318D

#21318D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.153 H 269.4°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#21318D
RGBrgb(33, 49, 141)
HSLhsl(231, 62%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(76.6%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.08, 27.72, -52.78)
CIE-LCHlch(25.08, 59.62, 297.71°)
OKLaboklab(36.51% -0.0016 -0.1526)
OKLCHoklch(36.51% 0.153 269.4)
XYZxyz(6.5316, 4.4423, 25.7074)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21318D #8D7D21
analogous
#21678D #21318D #47218D
triadic
#21318D #8D2131 #318D21
tetradic
#21318D #8D2167 #8D7D21 #218D47
square
#21318D #8D2167 #8D7D21 #218D47
split-complementary
#21318D #8D4721 #678D21
monochromatic
#0A0F2A #15205B #21318D #2D42BF #5266D6

Accessibility & contrast

On white

11.12
#21318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#21318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21318D
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21318D#FFFFFF#000000##FFFFFF
##21318D1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21318d;
/* rgb */ color: rgb(33, 49, 141);
/* oklch */ color: oklch(36.5% 0.153 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e69af',
    500: '#21318d',
    950: '#000000',
  },
}
SCSS
$custom: #21318d;
$custom-light: #6e69af;
$custom-dark: #000000;
JSON
{
  "hex": "#21318d",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 231.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36509,
    "c": 0.1526,
    "h": 269.4
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#21318D
secondary
#BAAA50
accent
#CD43E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21318D

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

Preview Lab → · Contrast checker → · Palette generator →

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