#28105F#28105F

#28105F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.128 H 288.4°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#28105F
RGBrgb(40, 16, 95)
HSLhsl(258, 71%, 22%)
HSVhsv(258, 83%, 37%)
CMYKcmyk(57.9%, 83.2%, 0%, 62.7%)
CIE-LABlab(13.52, 32.95, -42.19)
CIE-LCHlch(13.52, 53.53, 307.99°)
OKLaboklab(26.94% 0.0404 -0.1214)
OKLCHoklch(26.94% 0.128 288.4)
XYZxyz(3.1253, 1.6478, 10.9776)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28105F #475F10
analogous
#10205F #28105F #50105F
triadic
#28105F #5F2810 #105F28
tetradic
#28105F #5F1020 #475F10 #105F50
square
#28105F #5F1020 #475F10 #105F50
split-complementary
#28105F #5F5010 #205F10
monochromatic
#0B041A #12072B #28105F #3E1993 #5422C8

Accessibility & contrast

On white

15.79
#28105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#28105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28105F
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28105F#FFFFFF#000000##FFFFFF
##28105F1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#112737
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28105f;
/* rgb */ color: rgb(40, 16, 95);
/* oklch */ color: oklch(26.9% 0.128 288.4);
Tailwind
colors: {
  custom: {
    50: '#6a528d',
    500: '#28105f',
    950: '#000000',
  },
}
SCSS
$custom: #28105f;
$custom-light: #6a528d;
$custom-dark: #000000;
JSON
{
  "hex": "#28105f",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 258.228,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26937,
    "c": 0.12793,
    "h": 288.4
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#28105F
secondary
#799833
accent
#EE3AB7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28105F

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

Preview Lab → · Contrast checker → · Palette generator →

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