#20398F#20398F

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

Color values

HEX#20398F
RGBrgb(32, 57, 143)
HSLhsl(226, 63%, 34%)
HSVhsv(226, 78%, 56%)
CMYKcmyk(77.6%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.34, 22.92, -50.33)
CIE-LCHlch(27.34, 55.30, 294.48°)
OKLaboklab(38.22% -0.0081 -0.1453)
OKLCHoklch(38.22% 0.146 266.8)
XYZxyz(7.0150, 5.2157, 26.6183)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20398F #8F7620
analogous
#20718F #20398F #3E208F
triadic
#20398F #8F2039 #398F20
tetradic
#20398F #8F2071 #8F7620 #208F3E
square
#20398F #8F2071 #8F7620 #208F3E
split-complementary
#20398F #8F3E20 #718F20
monochromatic
#0A112B #15255D #20398F #2B4DC1 #5170D8

Accessibility & contrast

On white

10.28
#20398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20398F
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20398F#FFFFFF#000000##FFFFFF
##20398F1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #20398f;
/* rgb */ color: rgb(32, 57, 143);
/* oklch */ color: oklch(38.2% 0.146 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d6fb1',
    500: '#20398f',
    950: '#000000',
  },
}
SCSS
$custom: #20398f;
$custom-light: #6d6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#20398f",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 226.486,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38225,
    "c": 0.14555,
    "h": 266.8
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#20398F
secondary
#BBA34F
accent
#C141E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #20398F

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

Preview Lab → · Contrast checker → · Palette generator →

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