#20317B#20317B

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

Color values

HEX#20317B
RGBrgb(32, 49, 123)
HSLhsl(229, 59%, 30%)
HSVhsv(229, 74%, 48%)
CMYKcmyk(74%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.45, 20.59, -44.17)
CIE-LCHlch(23.45, 48.73, 295.00°)
OKLaboklab(34.79% -0.0024 -0.1273)
OKLCHoklch(34.79% 0.127 268.9)
XYZxyz(5.2679, 3.9332, 19.2166)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20317B #7B6A20
analogous
#205E7B #20317B #3C207B
triadic
#20317B #7B2031 #317B20
tetradic
#20317B #7B205E #7B6A20 #207B3C
square
#20317B #7B205E #7B6A20 #207B3C
split-complementary
#20317B #7B3C20 #5E7B20
monochromatic
#070A1A #131E4A #20317B #2D44AC #4660CF

Accessibility & contrast

On white

11.75
#20317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20317B
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20317B#FFFFFF#000000##FFFFFF
##20317B1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20317b;
/* rgb */ color: rgb(32, 49, 123);
/* oklch */ color: oklch(34.8% 0.127 268.9);
Tailwind
colors: {
  custom: {
    50: '#6968a2',
    500: '#20317b',
    950: '#000000',
  },
}
SCSS
$custom: #20317b;
$custom-light: #6968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20317b",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 228.791,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34794,
    "c": 0.12737,
    "h": 268.9
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#20317B
secondary
#AE9B49
accent
#C546E2
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20317B

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

Preview Lab → · Contrast checker → · Palette generator →

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