#20163E#20163E

#20163E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.073 H 291.3°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#20163E
RGBrgb(32, 22, 62)
HSLhsl(255, 48%, 16%)
HSVhsv(255, 65%, 24%)
CMYKcmyk(48.4%, 64.5%, 0%, 75.7%)
CIE-LABlab(10.77, 16.70, -24.01)
CIE-LCHlch(10.77, 29.25, 304.82°)
OKLaboklab(23.77% 0.0267 -0.0683)
OKLCHoklch(23.77% 0.073 291.3)
XYZxyz(1.7518, 1.2286, 4.7013)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20163E #343E16
analogous
#16203E #20163E #34163E
triadic
#20163E #3E2016 #163E20
tetradic
#20163E #3E1620 #343E16 #163E34
square
#20163E #3E1620 #343E16 #163E34
split-complementary
#20163E #3E3416 #203E16
monochromatic
#0C0817 #0C0817 #20163E #37266B #4F3698

Accessibility & contrast

On white

16.86
#20163E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#20163E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20163E
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20163E#FFFFFF#000000##FFFFFF
##20163E1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E3F
Deuteranopia (green-blind)
#041C3D
Tritanopia (blue-blind)
#181F27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20163e;
/* rgb */ color: rgb(32, 22, 62);
/* oklch */ color: oklch(23.8% 0.073 291.3);
Tailwind
colors: {
  custom: {
    50: '#5e5373',
    500: '#20163e',
    950: '#000000',
  },
}
SCSS
$custom: #20163e;
$custom-light: #5e5373;
$custom-dark: #000000;
JSON
{
  "hex": "#20163e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 62
  },
  "hsl": {
    "h": 255,
    "s": 47.619,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23771,
    "c": 0.07337,
    "h": 291.3
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#20163E
secondary
#67753B
accent
#D751B6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #20163E

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

Preview Lab → · Contrast checker → · Palette generator →

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