#20167C#20167C

#20167C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.160 H 275.4°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#20167C
RGBrgb(32, 22, 124)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 82%, 49%)
CMYKcmyk(74.2%, 82.3%, 0%, 51.4%)
CIE-LABlab(17.16, 38.22, -55.13)
CIE-LCHlch(17.16, 67.08, 304.73°)
OKLaboklab(30.27% 0.015 -0.1594)
OKLCHoklch(30.27% 0.16 275.4)
XYZxyz(4.5195, 2.3357, 19.2775)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20167C #727C16
analogous
#163F7C #20167C #53167C
triadic
#20167C #7C2016 #167C20
tetradic
#20167C #7C163F #727C16 #167C53
square
#20167C #7C163F #727C16 #167C53
split-complementary
#20167C #7C5316 #3F7C16
monochromatic
#07051A #130D48 #20167C #2D1FB0 #4232DB

Accessibility & contrast

On white

14.31
#20167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20167C
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20167C#FFFFFF#000000##FFFFFF
##20167C1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20167c;
/* rgb */ color: rgb(32, 22, 124);
/* oklch */ color: oklch(30.3% 0.160 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c56a3',
    500: '#20167c',
    950: '#000000',
  },
}
SCSS
$custom: #20167c;
$custom-light: #6c56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20167c",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 245.882,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30271,
    "c": 0.16011,
    "h": 275.4
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#20167C
secondary
#A6B13D
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20167C

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

Preview Lab → · Contrast checker → · Palette generator →

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