#28105E#28105E

#28105E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.127 H 288.8°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#28105E
RGBrgb(40, 16, 94)
HSLhsl(258, 71%, 22%)
HSVhsv(258, 83%, 37%)
CMYKcmyk(57.4%, 83%, 0%, 63.1%)
CIE-LABlab(13.41, 32.64, -41.70)
CIE-LCHlch(13.41, 52.96, 308.05°)
OKLaboklab(26.83% 0.0408 -0.1199)
OKLCHoklch(26.83% 0.127 288.8)
XYZxyz(3.0802, 1.6297, 10.7398)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28105E #465E10
analogous
#101F5E #28105E #4F105E
triadic
#28105E #5E2810 #105E28
tetradic
#28105E #5E101F #465E10 #105E4F
square
#28105E #5E101F #465E10 #105E4F
split-complementary
#28105E #5E4F10 #1F5E10
monochromatic
#0B041A #12072A #28105E #3E1992 #5522C7

Accessibility & contrast

On white

15.84
#28105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28105E
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28105E#FFFFFF#000000##FFFFFF
##28105E1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#122637
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28105e;
/* rgb */ color: rgb(40, 16, 94);
/* oklch */ color: oklch(26.8% 0.127 288.8);
Tailwind
colors: {
  custom: {
    50: '#69518c',
    500: '#28105e',
    950: '#000000',
  },
}
SCSS
$custom: #28105e;
$custom-light: #69518c;
$custom-dark: #000000;
JSON
{
  "hex": "#28105e",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 258.462,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26829,
    "c": 0.12667,
    "h": 288.8
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#28105E
secondary
#789733
accent
#EE3AB6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28105E

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

Preview Lab → · Contrast checker → · Palette generator →

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