#20397E#20397E

#20397E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.121 H 265.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#20397E
RGBrgb(32, 57, 126)
HSLhsl(224, 59%, 31%)
HSVhsv(224, 75%, 49%)
CMYKcmyk(74.6%, 54.8%, 0%, 50.6%)
CIE-LABlab(25.98, 16.17, -41.96)
CIE-LCHlch(25.98, 44.97, 291.08°)
OKLaboklab(36.77% -0.0091 -0.1207)
OKLCHoklch(36.77% 0.121 265.7)
XYZxyz(5.8234, 4.7391, 20.3424)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20397E #7E6520
analogous
#20687E #20397E #36207E
triadic
#20397E #7E2039 #397E20
tetradic
#20397E #7E2068 #7E6520 #207E36
square
#20397E #7E2068 #7E6520 #207E36
split-complementary
#20397E #7E3620 #687E20
monochromatic
#070D1C #14234D #20397E #2C4FAF #486CD0

Accessibility & contrast

On white

10.78
#20397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#20397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20397E
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20397E#FFFFFF#000000##FFFFFF
##20397E1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084280
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20397e;
/* rgb */ color: rgb(32, 57, 126);
/* oklch */ color: oklch(36.8% 0.121 265.7);
Tailwind
colors: {
  custom: {
    50: '#696ea4',
    500: '#20397e',
    950: '#000000',
  },
}
SCSS
$custom: #20397e;
$custom-light: #696ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#20397e",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 224.043,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36771,
    "c": 0.12106,
    "h": 265.7
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#20397E
secondary
#B19549
accent
#B945E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20397E

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

Preview Lab → · Contrast checker → · Palette generator →

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