#20397B#20397B

#20397B is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.117 H 265.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#20397B
RGBrgb(32, 57, 123)
HSLhsl(224, 59%, 30%)
HSVhsv(224, 74%, 48%)
CMYKcmyk(74%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.75, 14.97, -40.44)
CIE-LCHlch(25.75, 43.12, 290.32°)
OKLaboklab(36.53% -0.0094 -0.1162)
OKLCHoklch(36.53% 0.117 265.4)
XYZxyz(5.6327, 4.6628, 19.3382)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20397B #7B6220
analogous
#20677B #20397B #34207B
triadic
#20397B #7B2039 #397B20
tetradic
#20397B #7B2067 #7B6220 #207B34
square
#20397B #7B2067 #7B6220 #207B34
split-complementary
#20397B #7B3420 #677B20
monochromatic
#070C1A #13224A #20397B #2D50AC #466CCF

Accessibility & contrast

On white

10.87
#20397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#20397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20397B
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20397B#FFFFFF#000000##FFFFFF
##20397B1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F417D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20397b;
/* rgb */ color: rgb(32, 57, 123);
/* oklch */ color: oklch(36.5% 0.117 265.4);
Tailwind
colors: {
  custom: {
    50: '#686ea2',
    500: '#20397b',
    950: '#000000',
  },
}
SCSS
$custom: #20397b;
$custom-light: #686ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#20397b",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 223.516,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36527,
    "c": 0.11662,
    "h": 265.4
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#20397B
secondary
#AE9249
accent
#B746E2
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20397B

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

Preview Lab → · Contrast checker → · Palette generator →

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