#28176C#28176C

#28176C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.137 H 283.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#28176C
RGBrgb(40, 23, 108)
HSLhsl(252, 65%, 26%)
HSVhsv(252, 79%, 42%)
CMYKcmyk(63%, 78.7%, 0%, 57.6%)
CIE-LABlab(16.24, 33.32, -46.30)
CIE-LCHlch(16.24, 57.04, 305.74°)
OKLaboklab(29.26% 0.031 -0.1335)
OKLCHoklch(29.26% 0.137 283.1)
XYZxyz(3.8874, 2.1464, 14.3939)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28176C #5B6C17
analogous
#17306C #28176C #52176C
triadic
#28176C #6C2817 #176C28
tetradic
#28176C #6C1730 #5B6C17 #176C52
square
#28176C #6C1730 #5B6C17 #176C52
split-complementary
#28176C #6C5217 #306C17
monochromatic
#090519 #150C3A #28176C #3B229E #4D2CD1

Accessibility & contrast

On white

14.69
#28176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#28176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28176C
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28176C#FFFFFF#000000##FFFFFF
##28176C1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28176c;
/* rgb */ color: rgb(40, 23, 108);
/* oklch */ color: oklch(29.3% 0.137 283.1);
Tailwind
colors: {
  custom: {
    50: '#6c5697',
    500: '#28176c',
    950: '#000000',
  },
}
SCSS
$custom: #28176c;
$custom-light: #6c5697;
$custom-dark: #000000;
JSON
{
  "hex": "#28176c",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 252,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29264,
    "c": 0.13702,
    "h": 283.1
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#28176C
secondary
#8EA23D
accent
#E840C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28176C

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

Preview Lab → · Contrast checker → · Palette generator →

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