#20157E#20157E

#20157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.163 H 275.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#20157E
RGBrgb(32, 21, 126)
HSLhsl(246, 71%, 29%)
HSVhsv(246, 83%, 49%)
CMYKcmyk(74.6%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.22, 39.39, -56.30)
CIE-LCHlch(17.22, 68.71, 304.97°)
OKLaboklab(30.39% 0.0149 -0.1628)
OKLCHoklch(30.39% 0.163 275.2)
XYZxyz(4.6285, 2.3493, 19.9442)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20157E #737E15
analogous
#153F7E #20157E #55157E
triadic
#20157E #7E2015 #157E20
tetradic
#20157E #7E153F #737E15 #157E55
square
#20157E #7E153F #737E15 #157E55
split-complementary
#20157E #7E5515 #3F7E15
monochromatic
#07041A #130C4A #20157E #2D1EB2 #4331DD

Accessibility & contrast

On white

14.29
#20157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20157E
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20157E#FFFFFF#000000##FFFFFF
##20157E1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20157e;
/* rgb */ color: rgb(32, 21, 126);
/* oklch */ color: oklch(30.4% 0.163 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c56a5',
    500: '#20157e',
    950: '#000000',
  },
}
SCSS
$custom: #20157e;
$custom-light: #6c56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20157e",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 246.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30386,
    "c": 0.16347,
    "h": 275.2
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20157E

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

Preview Lab → · Contrast checker → · Palette generator →

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