#28105B#28105B

#28105B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.123 H 289.8°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#28105B
RGBrgb(40, 16, 91)
HSLhsl(259, 70%, 21%)
HSVhsv(259, 82%, 36%)
CMYKcmyk(56%, 82.4%, 0%, 64.3%)
CIE-LABlab(13.09, 31.72, -40.22)
CIE-LCHlch(13.09, 51.22, 308.26°)
OKLaboklab(26.51% 0.0417 -0.1156)
OKLCHoklch(26.51% 0.123 289.8)
XYZxyz(2.9481, 1.5769, 10.0445)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28105B #435B10
analogous
#101D5B #28105B #4D105B
triadic
#28105B #5B2810 #105B28
tetradic
#28105B #5B101D #435B10 #105B4D
square
#28105B #5B101D #435B10 #105B4D
split-complementary
#28105B #5B4D10 #1D5B10
monochromatic
#0B051A #110727 #28105B #3F198F #5622C3

Accessibility & contrast

On white

15.96
#28105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#28105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28105B
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28105B#FFFFFF#000000##FFFFFF
##28105B1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#152535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28105b;
/* rgb */ color: rgb(40, 16, 91);
/* oklch */ color: oklch(26.5% 0.123 289.8);
Tailwind
colors: {
  custom: {
    50: '#69518a',
    500: '#28105b',
    950: '#000000',
  },
}
SCSS
$custom: #28105b;
$custom-light: #69518a;
$custom-dark: #000000;
JSON
{
  "hex": "#28105b",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 259.2,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26507,
    "c": 0.1229,
    "h": 289.8
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#28105B
secondary
#759433
accent
#ED3BB4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28105B

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

Preview Lab → · Contrast checker → · Palette generator →

#28105B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva