#28176D#28176D

#28176D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.138 H 282.8°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#28176D
RGBrgb(40, 23, 109)
HSLhsl(252, 65%, 26%)
HSVhsv(252, 79%, 43%)
CMYKcmyk(63.3%, 78.9%, 0%, 57.3%)
CIE-LABlab(16.34, 33.64, -46.78)
CIE-LCHlch(16.34, 57.62, 305.72°)
OKLaboklab(29.37% 0.0308 -0.1349)
OKLCHoklch(29.37% 0.138 282.8)
XYZxyz(3.9409, 2.1678, 14.6758)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28176D #5C6D17
analogous
#17316D #28176D #53176D
triadic
#28176D #6D2817 #176D28
tetradic
#28176D #6D1731 #5C6D17 #176D53
square
#28176D #6D1731 #5C6D17 #176D53
split-complementary
#28176D #6D5317 #316D17
monochromatic
#090519 #150C3A #28176D #3B22A0 #4D2CD2

Accessibility & contrast

On white

14.65
#28176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28176D
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28176D#FFFFFF#000000##FFFFFF
##28176D1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28176d;
/* rgb */ color: rgb(40, 23, 109);
/* oklch */ color: oklch(29.4% 0.138 282.8);
Tailwind
colors: {
  custom: {
    50: '#6c5698',
    500: '#28176d',
    950: '#000000',
  },
}
SCSS
$custom: #28176d;
$custom-light: #6c5698;
$custom-dark: #000000;
JSON
{
  "hex": "#28176d",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 251.86,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29372,
    "c": 0.13832,
    "h": 282.8
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#28176D
secondary
#8FA33D
accent
#E840C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28176D

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

Preview Lab → · Contrast checker → · Palette generator →

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