#28117D#28117D

#28117D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.5% C 0.164 H 280.3°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#28117D
RGBrgb(40, 17, 125)
HSLhsl(253, 76%, 28%)
HSVhsv(253, 86%, 49%)
CMYKcmyk(68%, 86.4%, 0%, 51%)
CIE-LABlab(17.14, 41.65, -55.78)
CIE-LCHlch(17.14, 69.61, 306.75°)
OKLaboklab(30.47% 0.0292 -0.161)
OKLCHoklch(30.47% 0.164 280.3)
XYZxyz(4.7760, 2.3323, 19.5966)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28117D #667D11
analogous
#11307D #28117D #5E117D
triadic
#28117D #7D2811 #117D28
tetradic
#28117D #7D1130 #667D11 #117D5E
square
#28117D #7D1130 #667D11 #117D5E
split-complementary
#28117D #7D5E11 #307D11
monochromatic
#09041B #170A47 #28117D #3918B3 #4F27E2

Accessibility & contrast

On white

14.32
#28117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#28117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28117D
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28117D#FFFFFF#000000##FFFFFF
##28117D1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28117d;
/* rgb */ color: rgb(40, 17, 125);
/* oklch */ color: oklch(30.5% 0.164 280.3);
Tailwind
colors: {
  custom: {
    50: '#7054a4',
    500: '#28117d',
    950: '#000000',
  },
}
SCSS
$custom: #28117d;
$custom-light: #7054a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28117d",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 252.778,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30468,
    "c": 0.16362,
    "h": 280.3
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#28117D
secondary
#99B337
accent
#F335CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28117D

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

Preview Lab → · Contrast checker → · Palette generator →

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