#20168E#20168E

#20168E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.182 H 273.2°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#20168E
RGBrgb(32, 22, 142)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(77.5%, 84.5%, 0%, 44.3%)
CIE-LABlab(19.36, 44.01, -62.84)
CIE-LCHlch(19.36, 76.71, 305.00°)
OKLaboklab(32.44% 0.01 -0.1817)
OKLCHoklch(32.44% 0.182 273.2)
XYZxyz(5.7634, 2.8333, 25.8291)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20168E #848E16
analogous
#16488E #20168E #5C168E
triadic
#20168E #8E2016 #168E20
tetradic
#20168E #8E1648 #848E16 #168E5C
square
#20168E #8E1648 #848E16 #168E5C
split-complementary
#20168E #8E5C16 #488E16
monochromatic
#080624 #140E59 #20168E #2C1EC3 #4B3DE1

Accessibility & contrast

On white

13.40
#20168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20168E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20168E#FFFFFF#000000##FFFFFF
##20168E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20168e;
/* rgb */ color: rgb(32, 22, 142);
/* oklch */ color: oklch(32.4% 0.182 273.2);
Tailwind
colors: {
  custom: {
    50: '#7058b0',
    500: '#20168e',
    950: '#000000',
  },
}
SCSS
$custom: #20168e;
$custom-light: #7058b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20168e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 245,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32439,
    "c": 0.18203,
    "h": 273.2
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20168E

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

Preview Lab → · Contrast checker → · Palette generator →

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