#20168D#20168D

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

Color values

HEX#20168D
RGBrgb(32, 22, 141)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(77.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(19.24, 43.69, -62.42)
CIE-LCHlch(19.24, 76.19, 304.99°)
OKLaboklab(32.32% 0.0103 -0.1805)
OKLCHoklch(32.32% 0.181 273.3)
XYZxyz(5.6887, 2.8034, 25.4354)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20168D #838D16
analogous
#16488D #20168D #5C168D
triadic
#20168D #8D2016 #168D20
tetradic
#20168D #8D1648 #838D16 #168D5C
square
#20168D #8D1648 #838D16 #168D5C
split-complementary
#20168D #8D5C16 #488D16
monochromatic
#080523 #140E58 #20168D #2C1EC2 #4A3DE1

Accessibility & contrast

On white

13.45
#20168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20168D
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20168D#FFFFFF#000000##FFFFFF
##20168D1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20168d;
/* rgb */ color: rgb(32, 22, 141);
/* oklch */ color: oklch(32.3% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#20168d',
    950: '#000000',
  },
}
SCSS
$custom: #20168d;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20168d",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 245.042,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32317,
    "c": 0.18083,
    "h": 273.3
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#20168D
secondary
#B6C13E
accent
#F038E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20168D

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

Preview Lab → · Contrast checker → · Palette generator →

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