#28104D#28104D

#28104D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.105 H 295.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#28104D
RGBrgb(40, 16, 77)
HSLhsl(264, 66%, 18%)
HSVhsv(264, 79%, 30%)
CMYKcmyk(48.1%, 79.2%, 0%, 69.8%)
CIE-LABlab(11.67, 27.40, -33.00)
CIE-LCHlch(11.67, 42.89, 309.71°)
OKLaboklab(25.07% 0.0457 -0.0944)
OKLCHoklch(25.07% 0.105 295.8)
XYZxyz(2.3996, 1.3575, 7.1553)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28104D #354D10
analogous
#10164D #28104D #46104D
triadic
#28104D #4D2810 #104D28
tetradic
#28104D #4D1016 #354D10 #104D46
square
#28104D #4D1016 #354D10 #104D46
split-complementary
#28104D #4D4610 #164D10
monochromatic
#0D0519 #0E051A #28104D #421B80 #5D25B2

Accessibility & contrast

On white

16.51
#28104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28104D
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28104D#FFFFFF#000000##FFFFFF
##28104D1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#1E202D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28104d;
/* rgb */ color: rgb(40, 16, 77);
/* oklch */ color: oklch(25.1% 0.105 295.8);
Tailwind
colors: {
  custom: {
    50: '#66507f',
    500: '#28104d',
    950: '#000000',
  },
}
SCSS
$custom: #28104d;
$custom-light: #66507f;
$custom-dark: #000000;
JSON
{
  "hex": "#28104d",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 263.607,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25075,
    "c": 0.10492,
    "h": 295.8
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#28104D
secondary
#658732
accent
#E93FA6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28104D

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

Preview Lab → · Contrast checker → · Palette generator →

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