#20158A#20158A

#20158A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.178 H 273.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#20158A
RGBrgb(32, 21, 138)
HSLhsl(246, 74%, 31%)
HSVhsv(246, 85%, 54%)
CMYKcmyk(76.8%, 84.8%, 0%, 45.9%)
CIE-LABlab(18.70, 43.22, -61.43)
CIE-LCHlch(18.70, 75.11, 305.13°)
OKLaboklab(31.84% 0.0115 -0.1776)
OKLCHoklch(31.84% 0.178 273.7)
XYZxyz(5.4497, 2.6778, 24.2695)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20158A #7F8A15
analogous
#15448A #20158A #5A158A
triadic
#20158A #8A2015 #158A20
tetradic
#20158A #8A1544 #7F8A15 #158A5A
square
#20158A #8A1544 #7F8A15 #158A5A
split-complementary
#20158A #8A5A15 #448A15
monochromatic
#070520 #140D55 #20158A #2C1DBF #4839E1

Accessibility & contrast

On white

13.68
#20158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20158A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20158A#FFFFFF#000000##FFFFFF
##20158A1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20158a;
/* rgb */ color: rgb(32, 21, 138);
/* oklch */ color: oklch(31.8% 0.178 273.7);
Tailwind
colors: {
  custom: {
    50: '#7057ad',
    500: '#20158a',
    950: '#000000',
  },
}
SCSS
$custom: #20158a;
$custom-light: #7057ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20158a",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 245.641,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3184,
    "c": 0.17802,
    "h": 273.7
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#20158A
secondary
#B2BE3D
accent
#F038DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #20158A

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

Preview Lab → · Contrast checker → · Palette generator →

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