#20168B#20168B

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

Color values

HEX#20168B
RGBrgb(32, 22, 139)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(77%, 84.2%, 0%, 45.5%)
CIE-LABlab(18.99, 43.06, -61.58)
CIE-LCHlch(18.99, 75.14, 304.96°)
OKLaboklab(32.07% 0.0109 -0.1781)
OKLCHoklch(32.07% 0.178 273.5)
XYZxyz(5.5412, 2.7444, 24.6588)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20168B #818B16
analogous
#16478B #20168B #5B168B
triadic
#20168B #8B2016 #168B20
tetradic
#20168B #8B1647 #818B16 #168B5B
square
#20168B #8B1647 #818B16 #168B5B
split-complementary
#20168B #8B5B16 #478B16
monochromatic
#080521 #140E56 #20168B #2C1EC0 #493BE0

Accessibility & contrast

On white

13.56
#20168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20168B
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20168B#FFFFFF#000000##FFFFFF
##20168B1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20168b;
/* rgb */ color: rgb(32, 22, 139);
/* oklch */ color: oklch(32.1% 0.178 273.5);
Tailwind
colors: {
  custom: {
    50: '#7057ae',
    500: '#20168b',
    950: '#000000',
  },
}
SCSS
$custom: #20168b;
$custom-light: #7057ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20168b",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 245.128,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32073,
    "c": 0.17845,
    "h": 273.5
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#20168B
secondary
#B4BF3E
accent
#EF38E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #20168B

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

Preview Lab → · Contrast checker → · Palette generator →

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