#20168A#20168A

#20168A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.177 H 273.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#20168A
RGBrgb(32, 22, 138)
HSLhsl(245, 73%, 31%)
HSVhsv(245, 84%, 54%)
CMYKcmyk(76.8%, 84.1%, 0%, 45.9%)
CIE-LABlab(18.87, 42.74, -61.16)
CIE-LCHlch(18.87, 74.62, 304.95°)
OKLaboklab(31.95% 0.0111 -0.1769)
OKLCHoklch(31.95% 0.177 273.6)
XYZxyz(5.4685, 2.7153, 24.2757)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20168A #808A16
analogous
#16468A #20168A #5A168A
triadic
#20168A #8A2016 #168A20
tetradic
#20168A #8A1646 #808A16 #168A5A
square
#20168A #8A1646 #808A16 #168A5A
split-complementary
#20168A #8A5A16 #468A16
monochromatic
#080520 #140E55 #20168A #2C1EBF #493BE0

Accessibility & contrast

On white

13.61
#20168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20168A
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20168A#FFFFFF#000000##FFFFFF
##20168A1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20168a;
/* rgb */ color: rgb(32, 22, 138);
/* oklch */ color: oklch(32.0% 0.177 273.6);
Tailwind
colors: {
  custom: {
    50: '#6f57ad',
    500: '#20168a',
    950: '#000000',
  },
}
SCSS
$custom: #20168a;
$custom-light: #6f57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20168a",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 245.172,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31951,
    "c": 0.17725,
    "h": 273.6
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#20168A
secondary
#B3BE3E
accent
#EF39DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #20168A

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

Preview Lab → · Contrast checker → · Palette generator →

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