#28104C#28104C

#28104C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.104 H 296.3°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#28104C
RGBrgb(40, 16, 76)
HSLhsl(264, 65%, 18%)
HSVhsv(264, 79%, 30%)
CMYKcmyk(47.4%, 78.9%, 0%, 70.2%)
CIE-LABlab(11.58, 27.10, -32.46)
CIE-LCHlch(11.58, 42.29, 309.85°)
OKLaboklab(24.98% 0.046 -0.0929)
OKLCHoklch(24.98% 0.104 296.3)
XYZxyz(2.3645, 1.3435, 6.9708)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28104C #344C10
analogous
#10164C #28104C #46104C
triadic
#28104C #4C2810 #104C28
tetradic
#28104C #4C1016 #344C10 #104C46
square
#28104C #4C1016 #344C10 #104C46
split-complementary
#28104C #4C4610 #164C10
monochromatic
#0D0519 #0D0519 #28104C #431B7F #5D25B1

Accessibility & contrast

On white

16.55
#28104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28104C
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28104C#FFFFFF#000000##FFFFFF
##28104C1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#1E1F2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #28104c;
/* rgb */ color: rgb(40, 16, 76);
/* oklch */ color: oklch(25.0% 0.104 296.3);
Tailwind
colors: {
  custom: {
    50: '#66507f',
    500: '#28104c',
    950: '#000000',
  },
}
SCSS
$custom: #28104c;
$custom-light: #66507f;
$custom-dark: #000000;
JSON
{
  "hex": "#28104c",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 264,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24977,
    "c": 0.10361,
    "h": 296.3
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

primary
#28104C
secondary
#648632
accent
#E840A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28104C

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

Preview Lab → · Contrast checker → · Palette generator →

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