#20398E#20398E

#20398E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.144 H 266.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#20398E
RGBrgb(32, 57, 142)
HSLhsl(226, 63%, 34%)
HSVhsv(226, 77%, 56%)
CMYKcmyk(77.5%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.26, 22.53, -49.85)
CIE-LCHlch(27.26, 54.70, 294.32°)
OKLaboklab(38.14% -0.0081 -0.1439)
OKLCHoklch(38.14% 0.144 266.8)
XYZxyz(6.9396, 5.1856, 26.2211)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20398E #8E7520
analogous
#20708E #20398E #3E208E
triadic
#20398E #8E2039 #398E20
tetradic
#20398E #8E2070 #8E7520 #208E3E
square
#20398E #8E2070 #8E7520 #208E3E
split-complementary
#20398E #8E3E20 #708E20
monochromatic
#09112A #15255C #20398E #2B4DC0 #516FD8

Accessibility & contrast

On white

10.31
#20398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#20398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20398E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20398E#FFFFFF#000000##FFFFFF
##20398E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20398e;
/* rgb */ color: rgb(32, 57, 142);
/* oklch */ color: oklch(38.1% 0.144 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d6fb0',
    500: '#20398e',
    950: '#000000',
  },
}
SCSS
$custom: #20398e;
$custom-light: #6d6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20398e",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 226.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38136,
    "c": 0.14415,
    "h": 266.8
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#20398E
secondary
#BBA24F
accent
#C142E6
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20398E

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

Preview Lab → · Contrast checker → · Palette generator →

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