#20397C#20397C

#20397C is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.6% C 0.118 H 265.5°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#20397C
RGBrgb(32, 57, 124)
HSLhsl(224, 59%, 31%)
HSVhsv(224, 74%, 49%)
CMYKcmyk(74.2%, 54%, 0%, 51.4%)
CIE-LABlab(25.83, 15.37, -40.94)
CIE-LCHlch(25.83, 43.74, 290.58°)
OKLaboklab(36.61% -0.0093 -0.1177)
OKLCHoklch(36.61% 0.118 265.5)
XYZxyz(5.6956, 4.6880, 19.6696)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20397C #7C6320
analogous
#20677C #20397C #35207C
triadic
#20397C #7C2039 #397C20
tetradic
#20397C #7C2067 #7C6320 #207C35
square
#20397C #7C2067 #7C6320 #207C35
split-complementary
#20397C #7C3520 #677C20
monochromatic
#070C1B #13234B #20397C #2D4FAD #476CCF

Accessibility & contrast

On white

10.84
#20397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20397C
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20397C#FFFFFF#000000##FFFFFF
##20397C1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20397c;
/* rgb */ color: rgb(32, 57, 124);
/* oklch */ color: oklch(36.6% 0.118 265.5);
Tailwind
colors: {
  custom: {
    50: '#696ea2',
    500: '#20397c',
    950: '#000000',
  },
}
SCSS
$custom: #20397c;
$custom-light: #696ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#20397c",
  "rgb": {
    "r": 32,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 223.696,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.11811,
    "h": 265.5
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#20397C
secondary
#AF9349
accent
#B846E2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20397C

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

Preview Lab → · Contrast checker → · Palette generator →

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