#21318E#21318E

#21318E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.154 H 269.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#21318E
RGBrgb(33, 49, 142)
HSLhsl(231, 62%, 34%)
HSVhsv(231, 77%, 56%)
CMYKcmyk(76.8%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.17, 28.10, -53.25)
CIE-LCHlch(25.17, 60.21, 297.82°)
OKLaboklab(36.6% -0.0016 -0.154)
OKLCHoklch(36.6% 0.154 269.4)
XYZxyz(6.6063, 4.4722, 26.1010)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21318E #8E7E21
analogous
#21688E #21318E #48218E
triadic
#21318E #8E2131 #318E21
tetradic
#21318E #8E2168 #8E7E21 #218E48
square
#21318E #8E2168 #8E7E21 #218E48
split-complementary
#21318E #8E4821 #688E21
monochromatic
#0A0F2B #15205C #21318E #2D42C0 #5266D7

Accessibility & contrast

On white

11.08
#21318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21318E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21318E#FFFFFF#000000##FFFFFF
##21318E1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21318e;
/* rgb */ color: rgb(33, 49, 142);
/* oklch */ color: oklch(36.6% 0.154 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e69b0',
    500: '#21318e',
    950: '#000000',
  },
}
SCSS
$custom: #21318e;
$custom-light: #6e69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21318e",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 231.193,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36605,
    "c": 0.15398,
    "h": 269.4
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#21318E
secondary
#BAAB50
accent
#CD42E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21318E

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

Preview Lab → · Contrast checker → · Palette generator →

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