#28176B#28176B

#28176B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.136 H 283.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#28176B
RGBrgb(40, 23, 107)
HSLhsl(252, 65%, 25%)
HSVhsv(252, 79%, 42%)
CMYKcmyk(62.6%, 78.5%, 0%, 58%)
CIE-LABlab(16.13, 32.99, -45.82)
CIE-LCHlch(16.13, 56.46, 305.75°)
OKLaboklab(29.16% 0.0313 -0.1321)
OKLCHoklch(29.16% 0.136 283.3)
XYZxyz(3.8345, 2.1252, 14.1152)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28176B #5A6B17
analogous
#17306B #28176B #52176B
triadic
#28176B #6B2817 #176B28
tetradic
#28176B #6B1730 #5A6B17 #176B52
square
#28176B #6B1730 #5A6B17 #176B52
split-complementary
#28176B #6B5217 #306B17
monochromatic
#090519 #150C39 #28176B #3B229D #4E2DD0

Accessibility & contrast

On white

14.74
#28176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28176B
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28176B#FFFFFF#000000##FFFFFF
##28176B1.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28176b;
/* rgb */ color: rgb(40, 23, 107);
/* oklch */ color: oklch(29.2% 0.136 283.3);
Tailwind
colors: {
  custom: {
    50: '#6b5696',
    500: '#28176b',
    950: '#000000',
  },
}
SCSS
$custom: #28176b;
$custom-light: #6b5696;
$custom-dark: #000000;
JSON
{
  "hex": "#28176b",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 252.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29157,
    "c": 0.13572,
    "h": 283.3
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#28176B
secondary
#8DA13D
accent
#E840C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28176B

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

Preview Lab → · Contrast checker → · Palette generator →

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