#20106A#20106A

#20106A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.143 H 279.4°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#20106A
RGBrgb(32, 16, 106)
HSLhsl(251, 74%, 24%)
HSVhsv(251, 85%, 42%)
CMYKcmyk(69.8%, 84.9%, 0%, 58.4%)
CIE-LABlab(13.93, 35.43, -48.82)
CIE-LCHlch(13.93, 60.33, 305.97°)
OKLaboklab(27.4% 0.0233 -0.141)
OKLCHoklch(27.4% 0.143 279.4)
XYZxyz(3.3816, 1.7180, 13.7863)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20106A #5A6A10
analogous
#102D6A #20106A #4D106A
triadic
#20106A #6A2010 #106A20
tetradic
#20106A #6A102D #5A6A10 #106A4D
square
#20106A #6A102D #5A6A10 #106A4D
split-complementary
#20106A #6A4D10 #2D6A10
monochromatic
#08041B #100835 #20106A #30189F #4020D4

Accessibility & contrast

On white

15.63
#20106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#20106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20106A
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20106A#FFFFFF#000000##FFFFFF
##20106A1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002068
Tritanopia (blue-blind)
#002C3E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20106a;
/* rgb */ color: rgb(32, 16, 106);
/* oklch */ color: oklch(27.4% 0.143 279.4);
Tailwind
colors: {
  custom: {
    50: '#685296',
    500: '#20106a',
    950: '#000000',
  },
}
SCSS
$custom: #20106a;
$custom-light: #685296;
$custom-dark: #000000;
JSON
{
  "hex": "#20106a",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 250.667,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27395,
    "c": 0.14289,
    "h": 279.4
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#20106A
secondary
#8EA234
accent
#F037D0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #20106A

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

Preview Lab → · Contrast checker → · Palette generator →

#20106A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva