#20106C#20106C

#20106C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.145 H 279.0°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#20106C
RGBrgb(32, 16, 108)
HSLhsl(250, 74%, 24%)
HSVhsv(250, 85%, 42%)
CMYKcmyk(70.4%, 85.2%, 0%, 57.6%)
CIE-LABlab(14.17, 36.08, -49.73)
CIE-LCHlch(14.17, 61.44, 305.96°)
OKLaboklab(27.63% 0.0226 -0.1436)
OKLCHoklch(27.63% 0.145 279)
XYZxyz(3.4869, 1.7601, 14.3404)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20106C #5C6C10
analogous
#102E6C #20106C #4E106C
triadic
#20106C #6C2010 #106C20
tetradic
#20106C #6C102E #5C6C10 #106C4E
square
#20106C #6C102E #5C6C10 #106C4E
split-complementary
#20106C #6C4E10 #2E6C10
monochromatic
#08041B #100837 #20106C #3018A1 #4020D7

Accessibility & contrast

On white

15.53
#20106C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#20106C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20106C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20106C#FFFFFF#000000##FFFFFF
##20106C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276F
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20106c;
/* rgb */ color: rgb(32, 16, 108);
/* oklch */ color: oklch(27.6% 0.145 279.0);
Tailwind
colors: {
  custom: {
    50: '#685297',
    500: '#20106c',
    950: '#000000',
  },
}
SCSS
$custom: #20106c;
$custom-light: #685297;
$custom-dark: #000000;
JSON
{
  "hex": "#20106c",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 108
  },
  "hsl": {
    "h": 250.435,
    "s": 74.194,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27633,
    "c": 0.14539,
    "h": 279
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#20106C
secondary
#90A434
accent
#F137D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #20106C

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

Preview Lab → · Contrast checker → · Palette generator →

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