#28106A#28106A

#28106A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.142 H 285.0°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#28106A
RGBrgb(40, 16, 106)
HSLhsl(256, 74%, 24%)
HSVhsv(256, 85%, 42%)
CMYKcmyk(62.3%, 84.9%, 0%, 58.4%)
CIE-LABlab(14.75, 36.33, -47.45)
CIE-LCHlch(14.75, 59.76, 307.44°)
OKLaboklab(28.16% 0.0366 -0.1367)
OKLCHoklch(28.16% 0.142 285)
XYZxyz(3.6611, 1.8621, 13.7994)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28106A #526A10
analogous
#10256A #28106A #55106A
triadic
#28106A #6A2810 #106A28
tetradic
#28106A #6A1025 #526A10 #106A55
square
#28106A #6A1025 #526A10 #106A55
split-complementary
#28106A #6A5510 #256A10
monochromatic
#0A041B #140835 #28106A #3C189F #5020D4

Accessibility & contrast

On white

15.30
#28106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28106A
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28106A#FFFFFF#000000##FFFFFF
##28106A1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002268
Tritanopia (blue-blind)
#022B3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28106a;
/* rgb */ color: rgb(40, 16, 106);
/* oklch */ color: oklch(28.2% 0.142 285.0);
Tailwind
colors: {
  custom: {
    50: '#6c5296',
    500: '#28106a',
    950: '#000000',
  },
}
SCSS
$custom: #28106a;
$custom-light: #6c5296;
$custom-dark: #000000;
JSON
{
  "hex": "#28106a",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 256,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28157,
    "c": 0.14155,
    "h": 285
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#28106A
secondary
#85A234
accent
#F037BF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020D
muted
#7A787E

Preview Lab

Preview with #28106A

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

Preview Lab → · Contrast checker → · Palette generator →

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