#20158D#20158D

#20158D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.182 H 273.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#20158D
RGBrgb(32, 21, 141)
HSLhsl(246, 74%, 32%)
HSVhsv(246, 85%, 55%)
CMYKcmyk(77.3%, 85.1%, 0%, 44.7%)
CIE-LABlab(19.08, 44.16, -62.68)
CIE-LCHlch(19.08, 76.67, 305.16°)
OKLaboklab(32.21% 0.0106 -0.1813)
OKLCHoklch(32.21% 0.182 273.3)
XYZxyz(5.6699, 2.7659, 25.4292)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20158D #828D15
analogous
#15468D #20158D #5C158D
triadic
#20158D #8D2015 #158D20
tetradic
#20158D #8D1546 #828D15 #158D5C
square
#20158D #8D1546 #828D15 #158D5C
split-complementary
#20158D #8D5C15 #468D15
monochromatic
#080522 #140D58 #20158D #2C1DC2 #4A3BE2

Accessibility & contrast

On white

13.52
#20158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20158D
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20158D#FFFFFF#000000##FFFFFF
##20158D1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20158d;
/* rgb */ color: rgb(32, 21, 141);
/* oklch */ color: oklch(32.2% 0.182 273.3);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#20158d',
    950: '#000000',
  },
}
SCSS
$custom: #20158d;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20158d",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 245.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32208,
    "c": 0.18159,
    "h": 273.3
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20158D

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

Preview Lab → · Contrast checker → · Palette generator →

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