#20397D#20397D

#20397D is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.7% C 0.120 H 265.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#20397D
RGBrgb(32, 57, 125)
HSLhsl(224, 59%, 31%)
HSVhsv(224, 74%, 49%)
CMYKcmyk(74.4%, 54.4%, 0%, 51%)
CIE-LABlab(25.90, 15.77, -41.45)
CIE-LCHlch(25.90, 44.35, 290.83°)
OKLaboklab(36.69% -0.0092 -0.1192)
OKLCHoklch(36.69% 0.12 265.6)
XYZxyz(5.7592, 4.7134, 20.0043)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20397D #7D6420
analogous
#20677D #20397D #35207D
triadic
#20397D #7D2039 #397D20
tetradic
#20397D #7D2067 #7D6420 #207D35
square
#20397D #7D2067 #7D6420 #207D35
split-complementary
#20397D #7D3520 #677D20
monochromatic
#070D1C #14234C #20397D #2C4FAE #476CD0

Accessibility & contrast

On white

10.81
#20397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#20397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20397D
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20397D#FFFFFF#000000##FFFFFF
##20397D1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B427F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20397d;
/* rgb */ color: rgb(32, 57, 125);
/* oklch */ color: oklch(36.7% 0.120 265.6);
Tailwind
colors: {
  custom: {
    50: '#696ea3',
    500: '#20397d',
    950: '#000000',
  },
}
SCSS
$custom: #20397d;
$custom-light: #696ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#20397d",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 223.871,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36689,
    "c": 0.11958,
    "h": 265.6
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#20397D
secondary
#B09449
accent
#B845E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20397D

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

Preview Lab → · Contrast checker → · Palette generator →

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