#20167E#20167E

#20167E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 275.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#20167E
RGBrgb(32, 22, 126)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 83%, 49%)
CMYKcmyk(74.6%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.40, 38.87, -56.01)
CIE-LCHlch(17.40, 68.18, 304.76°)
OKLaboklab(30.51% 0.0144 -0.162)
OKLCHoklch(30.51% 0.163 275.1)
XYZxyz(4.6472, 2.3868, 19.9504)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20167E #747E16
analogous
#16407E #20167E #54167E
triadic
#20167E #7E2016 #167E20
tetradic
#20167E #7E1640 #747E16 #167E54
square
#20167E #7E1640 #747E16 #167E54
split-complementary
#20167E #7E5416 #407E16
monochromatic
#07051A #130D4A #20167E #2D1FB2 #4333DB

Accessibility & contrast

On white

14.21
#20167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#20167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20167E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20167E#FFFFFF#000000##FFFFFF
##20167E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20167e;
/* rgb */ color: rgb(32, 22, 126);
/* oklch */ color: oklch(30.5% 0.163 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c56a5',
    500: '#20167e',
    950: '#000000',
  },
}
SCSS
$custom: #20167e;
$custom-light: #6c56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20167e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 245.769,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30508,
    "c": 0.1626,
    "h": 275.1
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20167E

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

Preview Lab → · Contrast checker → · Palette generator →

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