#20157C#20157C

#20157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.161 H 275.5°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#20157C
RGBrgb(32, 21, 124)
HSLhsl(246, 71%, 28%)
HSVhsv(246, 83%, 49%)
CMYKcmyk(74.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.98, 38.73, -55.43)
CIE-LCHlch(16.98, 67.62, 304.95°)
OKLaboklab(30.15% 0.0154 -0.1602)
OKLCHoklch(30.15% 0.161 275.5)
XYZxyz(4.5007, 2.2982, 19.2713)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20157C #717C15
analogous
#153D7C #20157C #53157C
triadic
#20157C #7C2015 #157C20
tetradic
#20157C #7C153D #717C15 #157C53
square
#20157C #7C153D #717C15 #157C53
split-complementary
#20157C #7C5315 #3D7C15
monochromatic
#07041A #120C48 #20157C #2E1EB0 #4230DC

Accessibility & contrast

On white

14.39
#20157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20157C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20157C#FFFFFF#000000##FFFFFF
##20157C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20157c;
/* rgb */ color: rgb(32, 21, 124);
/* oklch */ color: oklch(30.1% 0.161 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c56a3',
    500: '#20157c',
    950: '#000000',
  },
}
SCSS
$custom: #20157c;
$custom-light: #6c56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20157c",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 246.408,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30147,
    "c": 0.16099,
    "h": 275.5
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20157C

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

Preview Lab → · Contrast checker → · Palette generator →

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