#20399B#20399B

#20399B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.162 H 267.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#20399B
RGBrgb(32, 57, 155)
HSLhsl(228, 66%, 37%)
HSVhsv(228, 79%, 61%)
CMYKcmyk(79.4%, 63.2%, 0%, 39.2%)
CIE-LABlab(28.38, 27.59, -55.99)
CIE-LCHlch(28.38, 62.42, 296.24°)
OKLaboklab(39.32% -0.008 -0.1619)
OKLCHoklch(39.32% 0.162 267.2)
XYZxyz(7.9731, 5.5990, 31.6645)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20399B #9B8220
analogous
#20779B #20399B #45209B
triadic
#20399B #9B2039 #399B20
tetradic
#20399B #9B2077 #9B8220 #209B45
square
#20399B #9B2077 #9B8220 #209B45
split-complementary
#20399B #9B4520 #779B20
monochromatic
#0B1436 #162668 #20399B #2A4CCE #5974DD

Accessibility & contrast

On white

9.91
#20399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#20399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20399B
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20399B#FFFFFF#000000##FFFFFF
##20399B1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #20399b;
/* rgb */ color: rgb(32, 57, 155);
/* oklch */ color: oklch(39.3% 0.162 267.2);
Tailwind
colors: {
  custom: {
    50: '#716fb9',
    500: '#20399b',
    950: '#000000',
  },
}
SCSS
$custom: #20399b;
$custom-light: #716fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#20399b",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 227.805,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39317,
    "c": 0.16214,
    "h": 267.2
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#20399B
secondary
#C1AB56
accent
#C63FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #20399B

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

Preview Lab → · Contrast checker → · Palette generator →

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