#20167D#20167D

#20167D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.161 H 275.2°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#20167D
RGBrgb(32, 22, 125)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(74.4%, 82.4%, 0%, 51%)
CIE-LABlab(17.28, 38.55, -55.57)
CIE-LCHlch(17.28, 67.63, 304.75°)
OKLaboklab(30.39% 0.0147 -0.1607)
OKLCHoklch(30.39% 0.161 275.2)
XYZxyz(4.5830, 2.3611, 19.6123)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20167D #737D16
analogous
#16407D #20167D #54167D
triadic
#20167D #7D2016 #167D20
tetradic
#20167D #7D1640 #737D16 #167D54
square
#20167D #7D1640 #737D16 #167D54
split-complementary
#20167D #7D5416 #407D16
monochromatic
#07051A #130D49 #20167D #2D1FB1 #4332DB

Accessibility & contrast

On white

14.26
#20167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20167D
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20167D#FFFFFF#000000##FFFFFF
##20167D1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20167d;
/* rgb */ color: rgb(32, 22, 125);
/* oklch */ color: oklch(30.4% 0.161 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c56a4',
    500: '#20167d',
    950: '#000000',
  },
}
SCSS
$custom: #20167d;
$custom-light: #6c56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20167d",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 245.825,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30389,
    "c": 0.16136,
    "h": 275.2
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#20167D
secondary
#A7B23D
accent
#ED3BDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20167D

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

Preview Lab → · Contrast checker → · Palette generator →

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