#20157A#20157A

#20157A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.159 H 275.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#20157A
RGBrgb(32, 21, 122)
HSLhsl(247, 71%, 28%)
HSVhsv(247, 83%, 48%)
CMYKcmyk(73.8%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.74, 38.08, -54.55)
CIE-LCHlch(16.74, 66.53, 304.92°)
OKLaboklab(29.91% 0.016 -0.1577)
OKLCHoklch(29.91% 0.159 275.8)
XYZxyz(4.3755, 2.2481, 18.6119)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20157A #6F7A15
analogous
#153C7A #20157A #52157A
triadic
#20157A #7A2015 #157A20
tetradic
#20157A #7A153C #6F7A15 #157A52
square
#20157A #7A153C #6F7A15 #157A52
split-complementary
#20157A #7A5215 #3C7A15
monochromatic
#07041A #120C46 #20157A #2E1EAE #412EDB

Accessibility & contrast

On white

14.48
#20157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#20157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20157A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20157A#FFFFFF#000000##FFFFFF
##20157A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20157a;
/* rgb */ color: rgb(32, 21, 122);
/* oklch */ color: oklch(29.9% 0.159 275.8);
Tailwind
colors: {
  custom: {
    50: '#6b55a2',
    500: '#20157a',
    950: '#000000',
  },
}
SCSS
$custom: #20157a;
$custom-light: #6b55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20157a",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 246.535,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29908,
    "c": 0.15851,
    "h": 275.8
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#20157A
secondary
#A3AF3B
accent
#ED3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20157A

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

Preview Lab → · Contrast checker → · Palette generator →

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