#20167B#20167B

#20167B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.159 H 275.5°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#20167B
RGBrgb(32, 22, 123)
HSLhsl(246, 70%, 28%)
HSVhsv(246, 82%, 48%)
CMYKcmyk(74%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.04, 37.89, -54.69)
CIE-LCHlch(17.04, 66.53, 304.71°)
OKLaboklab(30.15% 0.0153 -0.1581)
OKLCHoklch(30.15% 0.159 275.5)
XYZxyz(4.4565, 2.3105, 18.9462)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20167B #717B16
analogous
#163E7B #20167B #52167B
triadic
#20167B #7B2016 #167B20
tetradic
#20167B #7B163E #717B16 #167B52
square
#20167B #7B163E #717B16 #167B52
split-complementary
#20167B #7B5216 #3E7B16
monochromatic
#07051A #120D47 #20167B #2E1FAF #4231DA

Accessibility & contrast

On white

14.36
#20167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20167B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20167B#FFFFFF#000000##FFFFFF
##20167B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20167b;
/* rgb */ color: rgb(32, 22, 123);
/* oklch */ color: oklch(30.2% 0.159 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#20167b',
    950: '#000000',
  },
}
SCSS
$custom: #20167b;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20167b",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 245.941,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30152,
    "c": 0.15886,
    "h": 275.5
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#20167B
secondary
#A5B03D
accent
#EC3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20167B

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

Preview Lab → · Contrast checker → · Palette generator →

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