#21317D#21317D

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

Color values

HEX#21317D
RGBrgb(33, 49, 125)
HSLhsl(230, 58%, 31%)
HSVhsv(230, 74%, 49%)
CMYKcmyk(73.6%, 60.8%, 0%, 51%)
CIE-LABlab(23.67, 21.52, -45.07)
CIE-LCHlch(23.67, 49.95, 295.53°)
OKLaboklab(35.03% -0.0013 -0.13)
OKLCHoklch(35.03% 0.13 269.4)
XYZxyz(5.4259, 4.0001, 19.8842)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21317D #7D6D21
analogous
#215F7D #21317D #3F217D
triadic
#21317D #7D2131 #317D21
tetradic
#21317D #7D215F #7D6D21 #217D3F
square
#21317D #7D215F #7D6D21 #217D3F
split-complementary
#21317D #7D3F21 #5F7D21
monochromatic
#070B1C #141E4D #21317D #2E44AD #4961CF

Accessibility & contrast

On white

11.67
#21317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21317D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21317D#FFFFFF#000000##FFFFFF
##21317D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21317d;
/* rgb */ color: rgb(33, 49, 125);
/* oklch */ color: oklch(35.0% 0.130 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#21317d',
    950: '#000000',
  },
}
SCSS
$custom: #21317d;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21317d",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 229.565,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.12999,
    "h": 269.4
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#21317D
secondary
#B09E4A
accent
#C646E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21317D

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

Preview Lab → · Contrast checker → · Palette generator →

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