#20157B#20157B

#20157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.160 H 275.6°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#20157B
RGBrgb(32, 21, 123)
HSLhsl(246, 71%, 28%)
HSVhsv(246, 83%, 48%)
CMYKcmyk(74%, 82.9%, 0%, 51.8%)
CIE-LABlab(16.86, 38.41, -54.99)
CIE-LCHlch(16.86, 67.08, 304.93°)
OKLaboklab(30.03% 0.0157 -0.159)
OKLCHoklch(30.03% 0.16 275.6)
XYZxyz(4.4378, 2.2730, 18.9399)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20157B #707B15
analogous
#153D7B #20157B #53157B
triadic
#20157B #7B2015 #157B20
tetradic
#20157B #7B153D #707B15 #157B53
square
#20157B #7B153D #707B15 #157B53
split-complementary
#20157B #7B5315 #3D7B15
monochromatic
#07041A #120C47 #20157B #2E1EAF #422FDB

Accessibility & contrast

On white

14.44
#20157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20157B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20157B#FFFFFF#000000##FFFFFF
##20157B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20157b;
/* rgb */ color: rgb(32, 21, 123);
/* oklch */ color: oklch(30.0% 0.160 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#20157b',
    950: '#000000',
  },
}
SCSS
$custom: #20157b;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20157b",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 246.471,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30027,
    "c": 0.15975,
    "h": 275.6
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#20157B
secondary
#A4B03B
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20157B

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

Preview Lab → · Contrast checker → · Palette generator →

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