#20158F#20158F

#20158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.184 H 273.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#20158F
RGBrgb(32, 21, 143)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(77.6%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.33, 44.78, -63.51)
CIE-LCHlch(19.33, 77.71, 305.19°)
OKLaboklab(32.45% 0.01 -0.1837)
OKLCHoklch(32.45% 0.184 273.1)
XYZxyz(5.8201, 2.8260, 26.2200)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20158F #848F15
analogous
#15478F #20158F #5D158F
triadic
#20158F #8F2015 #158F20
tetradic
#20158F #8F1547 #848F15 #158F5D
square
#20158F #8F1547 #848F15 #158F5D
split-complementary
#20158F #8F5D15 #478F15
monochromatic
#080524 #140D5A #20158F #2C1DC4 #4B3CE2

Accessibility & contrast

On white

13.42
#20158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20158F
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20158F#FFFFFF#000000##FFFFFF
##20158F1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20158f;
/* rgb */ color: rgb(32, 21, 143);
/* oklch */ color: oklch(32.5% 0.184 273.1);
Tailwind
colors: {
  custom: {
    50: '#7157b1',
    500: '#20158f',
    950: '#000000',
  },
}
SCSS
$custom: #20158f;
$custom-light: #7157b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20158f",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 245.41,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.18395,
    "h": 273.1
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20158F

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

Preview Lab → · Contrast checker → · Palette generator →

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