#21317E#21317E

#21317E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.131 H 269.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#21317E
RGBrgb(33, 49, 126)
HSLhsl(230, 58%, 31%)
HSVhsv(230, 74%, 49%)
CMYKcmyk(73.8%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.76, 21.91, -45.56)
CIE-LCHlch(23.76, 50.56, 295.69°)
OKLaboklab(35.12% -0.0013 -0.1314)
OKLCHoklch(35.12% 0.131 269.4)
XYZxyz(5.4901, 4.0258, 20.2223)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21317E #7E6E21
analogous
#215F7E #21317E #3F217E
triadic
#21317E #7E2131 #317E21
tetradic
#21317E #7E215F #7E6E21 #217E3F
square
#21317E #7E215F #7E6E21 #217E3F
split-complementary
#21317E #7E3F21 #5F7E21
monochromatic
#080B1D #141E4E #21317E #2E44AE #4A61D0

Accessibility & contrast

On white

11.63
#21317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#21317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21317E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21317E#FFFFFF#000000##FFFFFF
##21317E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21317e;
/* rgb */ color: rgb(33, 49, 126);
/* oklch */ color: oklch(35.1% 0.131 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a4',
    500: '#21317e',
    950: '#000000',
  },
}
SCSS
$custom: #21317e;
$custom-light: #6a68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21317e",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 229.677,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35116,
    "c": 0.13144,
    "h": 269.4
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#21317E
secondary
#B19F4A
accent
#C746E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21317E

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

Preview Lab → · Contrast checker → · Palette generator →

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