#20167A#20167A

#20167A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.158 H 275.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#20167A
RGBrgb(32, 22, 122)
HSLhsl(246, 69%, 28%)
HSVhsv(246, 82%, 48%)
CMYKcmyk(73.8%, 82%, 0%, 52.2%)
CIE-LABlab(16.92, 37.56, -54.25)
CIE-LCHlch(16.92, 65.98, 304.70°)
OKLaboklab(30.03% 0.0155 -0.1568)
OKLCHoklch(30.03% 0.158 275.7)
XYZxyz(4.3943, 2.2856, 18.6182)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20167A #707A16
analogous
#163E7A #20167A #52167A
triadic
#20167A #7A2016 #167A20
tetradic
#20167A #7A163E #707A16 #167A52
square
#20167A #7A163E #707A16 #167A52
split-complementary
#20167A #7A5216 #3E7A16
monochromatic
#07051A #120D46 #20167A #2E1FAE #4231DA

Accessibility & contrast

On white

14.41
#20167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#20167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20167A
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20167A#FFFFFF#000000##FFFFFF
##20167A1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20167a;
/* rgb */ color: rgb(32, 22, 122);
/* oklch */ color: oklch(30.0% 0.158 275.7);
Tailwind
colors: {
  custom: {
    50: '#6b56a2',
    500: '#20167a',
    950: '#000000',
  },
}
SCSS
$custom: #20167a;
$custom-light: #6b56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20167a",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 246,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30034,
    "c": 0.15761,
    "h": 275.7
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#20167A
secondary
#A4AF3D
accent
#EC3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20167A

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

Preview Lab → · Contrast checker → · Palette generator →

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