#20319B#20319B

#20319B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.172 H 268.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#20319B
RGBrgb(32, 49, 155)
HSLhsl(232, 66%, 37%)
HSVhsv(232, 79%, 61%)
CMYKcmyk(79.4%, 68.4%, 0%, 39.2%)
CIE-LABlab(26.36, 32.90, -59.30)
CIE-LCHlch(26.36, 67.82, 299.02°)
OKLaboklab(37.84% -0.0034 -0.1717)
OKLCHoklch(37.84% 0.172 268.9)
XYZxyz(7.6083, 4.8694, 31.5429)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20319B #9B8A20
analogous
#206F9B #20319B #4D209B
triadic
#20319B #9B2031 #319B20
tetradic
#20319B #9B206F #9B8A20 #209B4D
square
#20319B #9B206F #9B8A20 #209B4D
split-complementary
#20319B #9B4D20 #6F9B20
monochromatic
#0B1136 #162168 #20319B #2A41CE #596BDD

Accessibility & contrast

On white

10.64
#20319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#20319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20319B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20319B#FFFFFF#000000##FFFFFF
##20319B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #20319b;
/* rgb */ color: rgb(32, 49, 155);
/* oklch */ color: oklch(37.8% 0.172 268.9);
Tailwind
colors: {
  custom: {
    50: '#7169ba',
    500: '#20319b',
    950: '#000000',
  },
}
SCSS
$custom: #20319b;
$custom-light: #7169ba;
$custom-dark: #000000;
JSON
{
  "hex": "#20319b",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 231.707,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37835,
    "c": 0.17172,
    "h": 268.9
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#20319B
secondary
#C1B256
accent
#D13FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #20319B

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

Preview Lab → · Contrast checker → · Palette generator →

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