#20157D#20157D

#20157D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.162 H 275.4°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#20157D
RGBrgb(32, 21, 125)
HSLhsl(246, 71%, 29%)
HSVhsv(246, 83%, 49%)
CMYKcmyk(74.4%, 83.2%, 0%, 51%)
CIE-LABlab(17.10, 39.06, -55.87)
CIE-LCHlch(17.10, 68.17, 304.96°)
OKLaboklab(30.27% 0.0151 -0.1615)
OKLCHoklch(30.27% 0.162 275.4)
XYZxyz(4.5643, 2.3236, 19.6060)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20157D #727D15
analogous
#153E7D #20157D #54157D
triadic
#20157D #7D2015 #157D20
tetradic
#20157D #7D153E #727D15 #157D54
square
#20157D #7D153E #727D15 #157D54
split-complementary
#20157D #7D5415 #3E7D15
monochromatic
#07041A #130C49 #20157D #2D1EB1 #4230DC

Accessibility & contrast

On white

14.34
#20157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#20157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20157D
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20157D#FFFFFF#000000##FFFFFF
##20157D1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20157d;
/* rgb */ color: rgb(32, 21, 125);
/* oklch */ color: oklch(30.3% 0.162 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c56a4',
    500: '#20157d',
    950: '#000000',
  },
}
SCSS
$custom: #20157d;
$custom-light: #6c56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20157d",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 246.346,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30266,
    "c": 0.16223,
    "h": 275.4
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#20157D
secondary
#A6B23C
accent
#EE3ADB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20157D

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

Preview Lab → · Contrast checker → · Palette generator →

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