#20108C#20108C

#20108C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.184 H 273.8°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#20108C
RGBrgb(32, 16, 140)
HSLhsl(248, 79%, 31%)
HSVhsv(248, 89%, 55%)
CMYKcmyk(77.1%, 88.6%, 0%, 45.1%)
CIE-LABlab(18.23, 45.98, -63.46)
CIE-LCHlch(18.23, 78.37, 305.93°)
OKLaboklab(31.59% 0.0122 -0.1834)
OKLCHoklch(31.59% 0.184 273.8)
XYZxyz(5.5130, 2.5705, 25.0115)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20108C #7C8C10
analogous
#103E8C #20108C #5E108C
triadic
#20108C #8C2010 #108C20
tetradic
#20108C #8C103E #7C8C10 #108C5E
square
#20108C #8C103E #7C8C10 #108C5E
split-complementary
#20108C #8C5E10 #3E8C10
monochromatic
#07031E #130A55 #20108C #2D16C3 #472FE7

Accessibility & contrast

On white

13.87
#20108C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#20108C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20108C
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20108C#FFFFFF#000000##FFFFFF
##20108C1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20108c;
/* rgb */ color: rgb(32, 16, 140);
/* oklch */ color: oklch(31.6% 0.184 273.8);
Tailwind
colors: {
  custom: {
    50: '#7055af',
    500: '#20108c',
    950: '#000000',
  },
}
SCSS
$custom: #20108c;
$custom-light: #7055af;
$custom-dark: #000000;
JSON
{
  "hex": "#20108c",
  "rgb": {
    "r": 32,
    "g": 16,
    "b": 140
  },
  "hsl": {
    "h": 247.742,
    "s": 79.487,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31591,
    "c": 0.18385,
    "h": 273.8
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#20108C
secondary
#AFC137
accent
#F632DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #20108C

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

Preview Lab → · Contrast checker → · Palette generator →

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