#28166A#28166A

#28166A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.136 H 283.8°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#28166A
RGBrgb(40, 22, 106)
HSLhsl(253, 66%, 25%)
HSVhsv(253, 79%, 42%)
CMYKcmyk(62.3%, 79.2%, 0%, 58.4%)
CIE-LABlab(15.83, 33.23, -45.67)
CIE-LCHlch(15.83, 56.48, 306.04°)
OKLaboklab(28.91% 0.0324 -0.1316)
OKLCHoklch(28.91% 0.136 283.8)
XYZxyz(3.7627, 2.0653, 13.8332)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28166A #586A16
analogous
#162E6A #28166A #52166A
triadic
#28166A #6A2816 #166A28
tetradic
#28166A #6A162E #586A16 #166A52
square
#28166A #6A162E #586A16 #166A52
split-complementary
#28166A #6A5216 #2E6A16
monochromatic
#0A0519 #150B37 #28166A #3B219D #4E2BCF

Accessibility & contrast

On white

14.86
#28166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#28166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28166A
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28166A#FFFFFF#000000##FFFFFF
##28166A1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#012E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28166a;
/* rgb */ color: rgb(40, 22, 106);
/* oklch */ color: oklch(28.9% 0.136 283.8);
Tailwind
colors: {
  custom: {
    50: '#6b5696',
    500: '#28166a',
    950: '#000000',
  },
}
SCSS
$custom: #28166a;
$custom-light: #6b5696;
$custom-dark: #000000;
JSON
{
  "hex": "#28166a",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 252.857,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28911,
    "c": 0.13553,
    "h": 283.8
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#28166A
secondary
#8BA03B
accent
#E93FC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28166A

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

Preview Lab → · Contrast checker → · Palette generator →

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