#28105A#28105A

#28105A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.122 H 290.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#28105A
RGBrgb(40, 16, 90)
HSLhsl(259, 70%, 21%)
HSVhsv(259, 82%, 35%)
CMYKcmyk(55.6%, 82.2%, 0%, 64.7%)
CIE-LABlab(12.98, 31.41, -39.72)
CIE-LCHlch(12.98, 50.63, 308.34°)
OKLaboklab(26.4% 0.042 -0.1141)
OKLCHoklch(26.4% 0.122 290.2)
XYZxyz(2.9053, 1.5598, 9.8189)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28105A #425A10
analogous
#101D5A #28105A #4D105A
triadic
#28105A #5A2810 #105A28
tetradic
#28105A #5A101D #425A10 #105A4D
square
#28105A #5A101D #425A10 #105A4D
split-complementary
#28105A #5A4D10 #1D5A10
monochromatic
#0C051A #110726 #28105A #3F198E #5622C2

Accessibility & contrast

On white

16.01
#28105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#28105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28105A
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28105A#FFFFFF#000000##FFFFFF
##28105A1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#162534
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28105a;
/* rgb */ color: rgb(40, 16, 90);
/* oklch */ color: oklch(26.4% 0.122 290.2);
Tailwind
colors: {
  custom: {
    50: '#695189',
    500: '#28105a',
    950: '#000000',
  },
}
SCSS
$custom: #28105a;
$custom-light: #695189;
$custom-dark: #000000;
JSON
{
  "hex": "#28105a",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 259.459,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26401,
    "c": 0.12164,
    "h": 290.2
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#28105A
secondary
#749333
accent
#ED3BB3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28105A

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

Preview Lab → · Contrast checker → · Palette generator →

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