#20398D#20398D

#20398D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.143 H 266.7°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#20398D
RGBrgb(32, 57, 141)
HSLhsl(226, 63%, 34%)
HSVhsv(226, 77%, 55%)
CMYKcmyk(77.3%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.17, 22.13, -49.37)
CIE-LCHlch(27.17, 54.10, 294.15°)
OKLaboklab(38.05% -0.0081 -0.1425)
OKLCHoklch(38.05% 0.143 266.7)
XYZxyz(6.8648, 5.1557, 25.8275)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20398D #8D7420
analogous
#20708D #20398D #3E208D
triadic
#20398D #8D2039 #398D20
tetradic
#20398D #8D2070 #8D7420 #208D3E
square
#20398D #8D2070 #8D7420 #208D3E
split-complementary
#20398D #8D3E20 #708D20
monochromatic
#091129 #15255B #20398D #2B4DBF #506FD7

Accessibility & contrast

On white

10.34
#20398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#20398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20398D
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20398D#FFFFFF#000000##FFFFFF
##20398D1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20398d;
/* rgb */ color: rgb(32, 57, 141);
/* oklch */ color: oklch(38.0% 0.143 266.7);
Tailwind
colors: {
  custom: {
    50: '#6d6faf',
    500: '#20398d',
    950: '#000000',
  },
}
SCSS
$custom: #20398d;
$custom-light: #6d6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#20398d",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 226.239,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.14274,
    "h": 266.7
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#20398D
secondary
#BAA24E
accent
#C042E6
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20398D

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

Preview Lab → · Contrast checker → · Palette generator →

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