#20158C#20158C

#20158C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.180 H 273.5°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#20158C
RGBrgb(32, 21, 140)
HSLhsl(246, 74%, 32%)
HSVhsv(246, 85%, 55%)
CMYKcmyk(77.1%, 85%, 0%, 45.1%)
CIE-LABlab(18.96, 43.84, -62.26)
CIE-LCHlch(18.96, 76.15, 305.15°)
OKLaboklab(32.09% 0.0109 -0.1801)
OKLCHoklch(32.09% 0.18 273.5)
XYZxyz(5.5959, 2.7363, 25.0391)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20158C #818C15
analogous
#15468C #20158C #5C158C
triadic
#20158C #8C2015 #158C20
tetradic
#20158C #8C1546 #818C15 #158C5C
square
#20158C #8C1546 #818C15 #158C5C
split-complementary
#20158C #8C5C15 #468C15
monochromatic
#080522 #140D57 #20158C #2C1DC1 #493AE1

Accessibility & contrast

On white

13.57
#20158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20158C
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20158C#FFFFFF#000000##FFFFFF
##20158C1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20158c;
/* rgb */ color: rgb(32, 21, 140);
/* oklch */ color: oklch(32.1% 0.180 273.5);
Tailwind
colors: {
  custom: {
    50: '#7057af',
    500: '#20158c',
    950: '#000000',
  },
}
SCSS
$custom: #20158c;
$custom-light: #7057af;
$custom-dark: #000000;
JSON
{
  "hex": "#20158c",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 245.546,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32085,
    "c": 0.18041,
    "h": 273.5
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#20158C
secondary
#B4C03D
accent
#F137DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #20158C

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

Preview Lab → · Contrast checker → · Palette generator →

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