#20397A#20397A

#20397A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.115 H 265.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#20397A
RGBrgb(32, 57, 122)
HSLhsl(223, 58%, 30%)
HSVhsv(223, 74%, 48%)
CMYKcmyk(73.8%, 53.3%, 0%, 52.2%)
CIE-LABlab(25.68, 14.57, -39.92)
CIE-LCHlch(25.68, 42.50, 290.05°)
OKLaboklab(36.45% -0.0095 -0.1147)
OKLCHoklch(36.45% 0.115 265.3)
XYZxyz(5.5704, 4.6379, 19.0102)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20397A #7A6120
analogous
#20667A #20397A #34207A
triadic
#20397A #7A2039 #397A20
tetradic
#20397A #7A2066 #7A6120 #207A34
square
#20397A #7A2066 #7A6120 #207A34
split-complementary
#20397A #7A3420 #667A20
monochromatic
#070C19 #13224A #20397A #2D50AA #466CCE

Accessibility & contrast

On white

10.89
#20397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20397A
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20397A#FFFFFF#000000##FFFFFF
##20397A1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11417C
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20397a;
/* rgb */ color: rgb(32, 57, 122);
/* oklch */ color: oklch(36.4% 0.115 265.3);
Tailwind
colors: {
  custom: {
    50: '#686ea1',
    500: '#20397a',
    950: '#000000',
  },
}
SCSS
$custom: #20397a;
$custom-light: #686ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#20397a",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 223.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36447,
    "c": 0.11514,
    "h": 265.3
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#20397A
secondary
#AD9149
accent
#B646E2
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20397A

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

Preview Lab → · Contrast checker → · Palette generator →

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