#20398C#20398C

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

Color values

HEX#20398C
RGBrgb(32, 57, 140)
HSLhsl(226, 63%, 34%)
HSVhsv(226, 77%, 55%)
CMYKcmyk(77.1%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.09, 21.74, -48.88)
CIE-LCHlch(27.09, 53.50, 293.97°)
OKLaboklab(37.96% -0.0082 -0.1411)
OKLCHoklch(37.96% 0.141 266.7)
XYZxyz(6.7908, 5.1260, 25.4374)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20398C #8C7320
analogous
#206F8C #20398C #3D208C
triadic
#20398C #8C2039 #398C20
tetradic
#20398C #8C206F #8C7320 #208C3D
square
#20398C #8C206F #8C7320 #208C3D
split-complementary
#20398C #8C3D20 #6F8C20
monochromatic
#091028 #15255A #20398C #2B4DBE #506FD7

Accessibility & contrast

On white

10.37
#20398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20398C
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20398C#FFFFFF#000000##FFFFFF
##20398C1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20398c;
/* rgb */ color: rgb(32, 57, 140);
/* oklch */ color: oklch(38.0% 0.141 266.7);
Tailwind
colors: {
  custom: {
    50: '#6d6fae',
    500: '#20398c',
    950: '#000000',
  },
}
SCSS
$custom: #20398c;
$custom-light: #6d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#20398c",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 226.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3796,
    "c": 0.14133,
    "h": 266.7
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#20398C
secondary
#BAA14E
accent
#C042E6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20398C

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

Preview Lab → · Contrast checker → · Palette generator →

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