#21317C#21317C

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

Color values

HEX#21317C
RGBrgb(33, 49, 124)
HSLhsl(229, 58%, 31%)
HSVhsv(229, 73%, 49%)
CMYKcmyk(73.4%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.59, 21.13, -44.57)
CIE-LCHlch(23.59, 49.33, 295.36°)
OKLaboklab(34.94% -0.0013 -0.1285)
OKLCHoklch(34.94% 0.129 269.4)
XYZxyz(5.3624, 3.9747, 19.5495)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21317C #7C6C21
analogous
#215E7C #21317C #3E217C
triadic
#21317C #7C2131 #317C21
tetradic
#21317C #7C215E #7C6C21 #217C3E
square
#21317C #7C215E #7C6C21 #217C3E
split-complementary
#21317C #7C3E21 #5E7C21
monochromatic
#070B1B #141E4C #21317C #2E44AC #4960CF

Accessibility & contrast

On white

11.70
#21317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#21317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21317C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21317C#FFFFFF#000000##FFFFFF
##21317C1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21317c;
/* rgb */ color: rgb(33, 49, 124);
/* oklch */ color: oklch(34.9% 0.129 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#21317c',
    950: '#000000',
  },
}
SCSS
$custom: #21317c;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21317c",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 229.451,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.12853,
    "h": 269.4
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#21317C
secondary
#AF9D4A
accent
#C647E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21317C

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

Preview Lab → · Contrast checker → · Palette generator →

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