#28104A#28104A

#28104A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.101 H 297.4°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#28104A
RGBrgb(40, 16, 74)
HSLhsl(265, 64%, 18%)
HSVhsv(265, 78%, 29%)
CMYKcmyk(45.9%, 78.4%, 0%, 71%)
CIE-LABlab(11.39, 26.49, -31.39)
CIE-LCHlch(11.39, 41.07, 310.17°)
OKLaboklab(24.79% 0.0464 -0.0897)
OKLCHoklch(24.79% 0.101 297.4)
XYZxyz(2.2961, 1.3161, 6.6103)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28104A #324A10
analogous
#10154A #28104A #45104A
triadic
#28104A #4A2810 #104A28
tetradic
#28104A #4A1015 #324A10 #104A45
square
#28104A #4A1015 #324A10 #104A45
split-complementary
#28104A #4A4510 #154A10
monochromatic
#0E0519 #0E0519 #28104A #431B7C #5E26AF

Accessibility & contrast

On white

16.62
#28104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#28104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28104A
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28104A#FFFFFF#000000##FFFFFF
##28104A1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#1F1E2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28104a;
/* rgb */ color: rgb(40, 16, 74);
/* oklch */ color: oklch(24.8% 0.101 297.4);
Tailwind
colors: {
  custom: {
    50: '#66507d',
    500: '#28104a',
    950: '#000000',
  },
}
SCSS
$custom: #28104a;
$custom-light: #66507d;
$custom-dark: #000000;
JSON
{
  "hex": "#28104a",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 264.828,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24785,
    "c": 0.10099,
    "h": 297.4
  },
  "luminance": 0.01316
}

Semantic roles & 50–950 ramp

primary
#28104A
secondary
#628432
accent
#E740A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28104A

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

Preview Lab → · Contrast checker → · Palette generator →

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