#20317D#20317D

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

Color values

HEX#20317D
RGBrgb(32, 49, 125)
HSLhsl(229, 59%, 31%)
HSVhsv(229, 74%, 49%)
CMYKcmyk(74.4%, 60.8%, 0%, 51%)
CIE-LABlab(23.62, 21.38, -45.16)
CIE-LCHlch(23.62, 49.97, 295.34°)
OKLaboklab(34.97% -0.0023 -0.1303)
OKLCHoklch(34.97% 0.13 269)
XYZxyz(5.3944, 3.9838, 19.8827)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20317D #7D6C20
analogous
#205F7D #20317D #3D207D
triadic
#20317D #7D2031 #317D20
tetradic
#20317D #7D205F #7D6C20 #207D3D
square
#20317D #7D205F #7D6C20 #207D3D
split-complementary
#20317D #7D3D20 #5F7D20
monochromatic
#070B1C #141E4C #20317D #2C44AE #4760D0

Accessibility & contrast

On white

11.69
#20317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20317D
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20317D#FFFFFF#000000##FFFFFF
##20317D1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.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: #20317d;
/* rgb */ color: rgb(32, 49, 125);
/* oklch */ color: oklch(35.0% 0.130 269.0);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#20317d',
    950: '#000000',
  },
}
SCSS
$custom: #20317d;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20317d",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 229.032,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34972,
    "c": 0.13028,
    "h": 269
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#20317D
secondary
#B09D49
accent
#C645E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20317D

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

Preview Lab → · Contrast checker → · Palette generator →

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