#20157F#20157F

#20157F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.165 H 275.1°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#20157F
RGBrgb(32, 21, 127)
HSLhsl(246, 72%, 29%)
HSVhsv(246, 83%, 50%)
CMYKcmyk(74.8%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.34, 39.71, -56.74)
CIE-LCHlch(17.34, 69.25, 304.99°)
OKLaboklab(30.51% 0.0146 -0.164)
OKLCHoklch(30.51% 0.165 275.1)
XYZxyz(4.6933, 2.3753, 20.2857)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20157F #747F15
analogous
#153F7F #20157F #55157F
triadic
#20157F #7F2015 #157F20
tetradic
#20157F #7F153F #747F15 #157F55
square
#20157F #7F153F #747F15 #157F55
split-complementary
#20157F #7F5515 #3F7F15
monochromatic
#07041A #130C4A #20157F #2D1EB4 #4331DD

Accessibility & contrast

On white

14.24
#20157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#20157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20157F
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20157F#FFFFFF#000000##FFFFFF
##20157F1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20157f;
/* rgb */ color: rgb(32, 21, 127);
/* oklch */ color: oklch(30.5% 0.165 275.1);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#20157f',
    950: '#000000',
  },
}
SCSS
$custom: #20157f;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20157f",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 246.226,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30506,
    "c": 0.1647,
    "h": 275.1
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#20157F
secondary
#A8B43C
accent
#EE39DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20157F

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

Preview Lab → · Contrast checker → · Palette generator →

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