#28105D#28105D

#28105D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.125 H 289.1°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#28105D
RGBrgb(40, 16, 93)
HSLhsl(259, 71%, 21%)
HSVhsv(259, 83%, 36%)
CMYKcmyk(57%, 82.8%, 0%, 63.5%)
CIE-LABlab(13.30, 32.33, -41.21)
CIE-LCHlch(13.30, 52.38, 308.12°)
OKLaboklab(26.72% 0.0411 -0.1185)
OKLCHoklch(26.72% 0.125 289.1)
XYZxyz(3.0356, 1.6119, 10.5050)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28105D #455D10
analogous
#101F5D #28105D #4F105D
triadic
#28105D #5D2810 #105D28
tetradic
#28105D #5D101F #455D10 #105D4F
square
#28105D #5D101F #455D10 #105D4F
split-complementary
#28105D #5D4F10 #1F5D10
monochromatic
#0B041A #120729 #28105D #3E1991 #5522C5

Accessibility & contrast

On white

15.88
#28105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28105D
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28105D#FFFFFF#000000##FFFFFF
##28105D1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#132636
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28105d;
/* rgb */ color: rgb(40, 16, 93);
/* oklch */ color: oklch(26.7% 0.125 289.1);
Tailwind
colors: {
  custom: {
    50: '#69518c',
    500: '#28105d',
    950: '#000000',
  },
}
SCSS
$custom: #28105d;
$custom-light: #69518c;
$custom-dark: #000000;
JSON
{
  "hex": "#28105d",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 258.701,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26721,
    "c": 0.12542,
    "h": 289.1
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#28105D
secondary
#779633
accent
#ED3AB6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28105D

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

Preview Lab → · Contrast checker → · Palette generator →

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