#28104B#28104B

#28104B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.102 H 296.8°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#28104B
RGBrgb(40, 16, 75)
HSLhsl(264, 65%, 18%)
HSVhsv(264, 79%, 29%)
CMYKcmyk(46.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(11.48, 26.79, -31.93)
CIE-LCHlch(11.48, 41.68, 310.00°)
OKLaboklab(24.88% 0.0462 -0.0913)
OKLCHoklch(24.88% 0.102 296.8)
XYZxyz(2.3300, 1.3297, 6.7891)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28104B #334B10
analogous
#10154B #28104B #45104B
triadic
#28104B #4B2810 #104B28
tetradic
#28104B #4B1015 #334B10 #104B45
square
#28104B #4B1015 #334B10 #104B45
split-complementary
#28104B #4B4510 #154B10
monochromatic
#0D0519 #0D0519 #28104B #431B7D #5E26B0

Accessibility & contrast

On white

16.59
#28104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#28104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28104B
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28104B#FFFFFF#000000##FFFFFF
##28104B1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#1F1F2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28104b;
/* rgb */ color: rgb(40, 16, 75);
/* oklch */ color: oklch(24.9% 0.102 296.8);
Tailwind
colors: {
  custom: {
    50: '#66507e',
    500: '#28104b',
    950: '#000000',
  },
}
SCSS
$custom: #28104b;
$custom-light: #66507e;
$custom-dark: #000000;
JSON
{
  "hex": "#28104b",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 264.407,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24881,
    "c": 0.10231,
    "h": 296.8
  },
  "luminance": 0.0133
}

Semantic roles & 50–950 ramp

primary
#28104B
secondary
#638532
accent
#E840A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28104B

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

Preview Lab → · Contrast checker → · Palette generator →

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