#20168F#20168F

#20168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.183 H 273.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#20168F
RGBrgb(32, 22, 143)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(77.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(19.49, 44.32, -63.25)
CIE-LCHlch(19.49, 77.23, 305.02°)
OKLaboklab(32.56% 0.0098 -0.1829)
OKLCHoklch(32.56% 0.183 273.1)
XYZxyz(5.8388, 2.8634, 26.2263)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20168F #858F16
analogous
#16488F #20168F #5D168F
triadic
#20168F #8F2016 #168F20
tetradic
#20168F #8F1648 #858F16 #168F5D
square
#20168F #8F1648 #858F16 #168F5D
split-complementary
#20168F #8F5D16 #488F16
monochromatic
#080625 #140E5A #20168F #2C1EC4 #4C3EE1

Accessibility & contrast

On white

13.35
#20168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20168F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20168F#FFFFFF#000000##FFFFFF
##20168F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20168f;
/* rgb */ color: rgb(32, 22, 143);
/* oklch */ color: oklch(32.6% 0.183 273.1);
Tailwind
colors: {
  custom: {
    50: '#7158b1',
    500: '#20168f',
    950: '#000000',
  },
}
SCSS
$custom: #20168f;
$custom-light: #7158b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20168f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 244.959,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32561,
    "c": 0.18321,
    "h": 273.1
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#20168F
secondary
#B7C13F
accent
#F038E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20168F

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

Preview Lab → · Contrast checker → · Palette generator →

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