#20317C#20317C

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

Color values

HEX#20317C
RGBrgb(32, 49, 124)
HSLhsl(229, 59%, 31%)
HSVhsv(229, 74%, 49%)
CMYKcmyk(74.2%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.53, 20.99, -44.67)
CIE-LCHlch(23.53, 49.35, 295.17°)
OKLaboklab(34.88% -0.0024 -0.1288)
OKLCHoklch(34.88% 0.129 269)
XYZxyz(5.3308, 3.9584, 19.5480)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20317C #7C6B20
analogous
#205F7C #20317C #3D207C
triadic
#20317C #7C2031 #317C20
tetradic
#20317C #7C205F #7C6B20 #207C3D
square
#20317C #7C205F #7C6B20 #207C3D
split-complementary
#20317C #7C3D20 #5F7C20
monochromatic
#070B1B #131E4B #20317C #2D44AD #4760CF

Accessibility & contrast

On white

11.72
#20317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#20317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20317C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20317C#FFFFFF#000000##FFFFFF
##20317C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.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: #20317c;
/* rgb */ color: rgb(32, 49, 124);
/* oklch */ color: oklch(34.9% 0.129 269.0);
Tailwind
colors: {
  custom: {
    50: '#6968a3',
    500: '#20317c',
    950: '#000000',
  },
}
SCSS
$custom: #20317c;
$custom-light: #6968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20317c",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 228.913,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.12883,
    "h": 269
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#20317C
secondary
#AF9C49
accent
#C546E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20317C

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

Preview Lab → · Contrast checker → · Palette generator →

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