#20167F#20167F

#20167F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.164 H 275.0°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#20167F
RGBrgb(32, 22, 127)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 83%, 50%)
CMYKcmyk(74.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(17.52, 39.20, -56.45)
CIE-LCHlch(17.52, 68.73, 304.78°)
OKLaboklab(30.63% 0.0142 -0.1632)
OKLCHoklch(30.63% 0.164 275)
XYZxyz(4.7121, 2.4127, 20.2919)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20167F #757F16
analogous
#16417F #20167F #55167F
triadic
#20167F #7F2016 #167F20
tetradic
#20167F #7F1641 #757F16 #167F55
square
#20167F #7F1641 #757F16 #167F55
split-complementary
#20167F #7F5516 #417F16
monochromatic
#07051A #130D4B #20167F #2D1FB3 #4434DC

Accessibility & contrast

On white

14.16
#20167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20167F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20167F#FFFFFF#000000##FFFFFF
##20167F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20167f;
/* rgb */ color: rgb(32, 22, 127);
/* oklch */ color: oklch(30.6% 0.164 275.0);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#20167f',
    950: '#000000',
  },
}
SCSS
$custom: #20167f;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20167f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 245.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30627,
    "c": 0.16384,
    "h": 275
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20167F

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

Preview Lab → · Contrast checker → · Palette generator →

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