#20398A#20398A

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

Color values

HEX#20398A
RGBrgb(32, 57, 138)
HSLhsl(226, 62%, 33%)
HSVhsv(226, 77%, 54%)
CMYKcmyk(76.8%, 58.7%, 0%, 45.9%)
CIE-LABlab(26.93, 20.95, -47.91)
CIE-LCHlch(26.93, 52.29, 293.61°)
OKLaboklab(37.79% -0.0082 -0.1382)
OKLCHoklch(37.79% 0.138 266.6)
XYZxyz(6.6446, 5.0676, 24.6678)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20398A #8A7120
analogous
#206E8A #20398A #3C208A
triadic
#20398A #8A2039 #398A20
tetradic
#20398A #8A206E #8A7120 #208A3C
square
#20398A #8A206E #8A7120 #208A3C
split-complementary
#20398A #8A3C20 #6E8A20
monochromatic
#091027 #142458 #20398A #2C4EBC #4E6ED6

Accessibility & contrast

On white

10.43
#20398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#20398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20398A
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20398A#FFFFFF#000000##FFFFFF
##20398A1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20398a;
/* rgb */ color: rgb(32, 57, 138);
/* oklch */ color: oklch(37.8% 0.138 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c6fad',
    500: '#20398a',
    950: '#000000',
  },
}
SCSS
$custom: #20398a;
$custom-light: #6c6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#20398a",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 225.849,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37785,
    "c": 0.13848,
    "h": 266.6
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#20398A
secondary
#B9A04D
accent
#BF42E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #20398A

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

Preview Lab → · Contrast checker → · Palette generator →

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