#20158E#20158E

#20158E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 273.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#20158E
RGBrgb(32, 21, 142)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(77.5%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.21, 44.47, -63.10)
CIE-LCHlch(19.21, 77.19, 305.17°)
OKLaboklab(32.33% 0.0103 -0.1825)
OKLCHoklch(32.33% 0.183 273.2)
XYZxyz(5.7447, 2.7958, 25.8228)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20158E #838E15
analogous
#15468E #20158E #5D158E
triadic
#20158E #8E2015 #158E20
tetradic
#20158E #8E1546 #838E15 #158E5D
square
#20158E #8E1546 #838E15 #158E5D
split-complementary
#20158E #8E5D15 #468E15
monochromatic
#080523 #140D59 #20158E #2C1DC3 #4A3BE2

Accessibility & contrast

On white

13.47
#20158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20158E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20158E#FFFFFF#000000##FFFFFF
##20158E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20158e;
/* rgb */ color: rgb(32, 21, 142);
/* oklch */ color: oklch(32.3% 0.183 273.2);
Tailwind
colors: {
  custom: {
    50: '#7157b0',
    500: '#20158e',
    950: '#000000',
  },
}
SCSS
$custom: #20158e;
$custom-light: #7157b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20158e",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 245.455,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32331,
    "c": 0.18277,
    "h": 273.2
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#20158E
secondary
#B6C23D
accent
#F137E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20158E

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

Preview Lab → · Contrast checker → · Palette generator →

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