#20397F#20397F

#20397F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.123 H 265.8°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#20397F
RGBrgb(32, 57, 127)
HSLhsl(224, 60%, 31%)
HSVhsv(224, 75%, 50%)
CMYKcmyk(74.8%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.05, 16.57, -42.46)
CIE-LCHlch(26.05, 45.58, 291.32°)
OKLaboklab(36.85% -0.009 -0.1222)
OKLCHoklch(36.85% 0.123 265.8)
XYZxyz(5.8882, 4.7650, 20.6840)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20397F #7F6620
analogous
#20687F #20397F #37207F
triadic
#20397F #7F2039 #397F20
tetradic
#20397F #7F2068 #7F6620 #207F37
square
#20397F #7F2068 #7F6620 #207F37
split-complementary
#20397F #7F3720 #687F20
monochromatic
#070D1D #14234E #20397F #2C4FB0 #486CD1

Accessibility & contrast

On white

10.75
#20397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20397F
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20397F#FFFFFF#000000##FFFFFF
##20397F1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #20397f;
/* rgb */ color: rgb(32, 57, 127);
/* oklch */ color: oklch(36.9% 0.123 265.8);
Tailwind
colors: {
  custom: {
    50: '#696ea5',
    500: '#20397f',
    950: '#000000',
  },
}
SCSS
$custom: #20397f;
$custom-light: #696ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#20397f",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 224.211,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36853,
    "c": 0.12254,
    "h": 265.8
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20397F

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

Preview Lab → · Contrast checker → · Palette generator →

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