#20398B#20398B

#20398B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.140 H 266.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#20398B
RGBrgb(32, 57, 139)
HSLhsl(226, 63%, 34%)
HSVhsv(226, 77%, 55%)
CMYKcmyk(77%, 59%, 0%, 45.5%)
CIE-LABlab(27.01, 21.34, -48.40)
CIE-LCHlch(27.01, 52.90, 293.80°)
OKLaboklab(37.87% -0.0082 -0.1397)
OKLCHoklch(37.87% 0.14 266.6)
XYZxyz(6.7174, 5.0967, 25.0508)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20398B #8B7220
analogous
#206E8B #20398B #3C208B
triadic
#20398B #8B2039 #398B20
tetradic
#20398B #8B206E #8B7220 #208B3C
square
#20398B #8B206E #8B7220 #208B3C
split-complementary
#20398B #8B3C20 #6E8B20
monochromatic
#091028 #152559 #20398B #2B4DBD #4F6FD6

Accessibility & contrast

On white

10.40
#20398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#20398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20398B
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20398B#FFFFFF#000000##FFFFFF
##20398B1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20398b;
/* rgb */ color: rgb(32, 57, 139);
/* oklch */ color: oklch(37.9% 0.140 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c6fae',
    500: '#20398b',
    950: '#000000',
  },
}
SCSS
$custom: #20398b;
$custom-light: #6c6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#20398b",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 225.981,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37872,
    "c": 0.1399,
    "h": 266.6
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#20398B
secondary
#BAA04D
accent
#BF42E6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20398B

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

Preview Lab → · Contrast checker → · Palette generator →

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