#20317A#20317A

#20317A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.126 H 268.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#20317A
RGBrgb(32, 49, 122)
HSLhsl(229, 58%, 30%)
HSVhsv(229, 74%, 48%)
CMYKcmyk(73.8%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.37, 20.20, -43.67)
CIE-LCHlch(23.37, 48.12, 294.82°)
OKLaboklab(34.71% -0.0024 -0.1259)
OKLCHoklch(34.71% 0.126 268.9)
XYZxyz(5.2056, 3.9083, 18.8886)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20317A #7A6920
analogous
#205E7A #20317A #3C207A
triadic
#20317A #7A2031 #317A20
tetradic
#20317A #7A205E #7A6920 #207A3C
square
#20317A #7A205E #7A6920 #207A3C
split-complementary
#20317A #7A3C20 #5E7A20
monochromatic
#070A19 #131E4A #20317A #2D44AA #4660CE

Accessibility & contrast

On white

11.79
#20317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#20317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20317A
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20317A#FFFFFF#000000##FFFFFF
##20317A1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20317a;
/* rgb */ color: rgb(32, 49, 122);
/* oklch */ color: oklch(34.7% 0.126 268.9);
Tailwind
colors: {
  custom: {
    50: '#6968a1',
    500: '#20317a',
    950: '#000000',
  },
}
SCSS
$custom: #20317a;
$custom-light: #6968a1;
$custom-dark: #000000;
JSON
{
  "hex": "#20317a",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 228.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.12591,
    "h": 268.9
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#20317A
secondary
#AD9A49
accent
#C446E2
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20317A

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

Preview Lab → · Contrast checker → · Palette generator →

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