#20317E#20317E

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

Color values

HEX#20317E
RGBrgb(32, 49, 126)
HSLhsl(229, 59%, 31%)
HSVhsv(229, 75%, 49%)
CMYKcmyk(74.6%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.70, 21.78, -45.65)
CIE-LCHlch(23.70, 50.58, 295.50°)
OKLaboklab(35.06% -0.0023 -0.1317)
OKLCHoklch(35.06% 0.132 269)
XYZxyz(5.4586, 4.0095, 20.2209)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20317E #7E6D20
analogous
#20607E #20317E #3E207E
triadic
#20317E #7E2031 #317E20
tetradic
#20317E #7E2060 #7E6D20 #207E3E
square
#20317E #7E2060 #7E6D20 #207E3E
split-complementary
#20317E #7E3E20 #607E20
monochromatic
#070B1C #141E4D #20317E #2C44AF #4861D0

Accessibility & contrast

On white

11.65
#20317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20317E
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20317E#FFFFFF#000000##FFFFFF
##20317E1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20317e;
/* rgb */ color: rgb(32, 49, 126);
/* oklch */ color: oklch(35.1% 0.132 269.0);
Tailwind
colors: {
  custom: {
    50: '#6a68a4',
    500: '#20317e',
    950: '#000000',
  },
}
SCSS
$custom: #20317e;
$custom-light: #6a68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20317e",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 229.149,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35062,
    "c": 0.13173,
    "h": 269
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#20317E
secondary
#B19E49
accent
#C645E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20317E

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

Preview Lab → · Contrast checker → · Palette generator →

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