#28175A#28175A

#28175A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.113 H 288.2°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#28175A
RGBrgb(40, 23, 90)
HSLhsl(255, 59%, 22%)
HSVhsv(255, 74%, 35%)
CMYKcmyk(55.6%, 74.4%, 0%, 64.7%)
CIE-LABlab(14.41, 27.39, -37.38)
CIE-LCHlch(14.41, 46.34, 306.24°)
OKLaboklab(27.41% 0.0353 -0.1073)
OKLCHoklch(27.41% 0.113 288.2)
XYZxyz(3.0264, 1.8020, 9.8592)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28175A #495A17
analogous
#17285A #28175A #4A175A
triadic
#28175A #5A2817 #175A28
tetradic
#28175A #5A1728 #495A17 #175A4A
square
#28175A #5A1728 #495A17 #175A4A
split-complementary
#28175A #5A4A17 #285A17
monochromatic
#0B0618 #120B29 #28175A #3E238B #5330BB

Accessibility & contrast

On white

15.44
#28175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#28175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28175A
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28175A#FFFFFF#000000##FFFFFF
##28175A1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#152836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28175a;
/* rgb */ color: rgb(40, 23, 90);
/* oklch */ color: oklch(27.4% 0.113 288.2);
Tailwind
colors: {
  custom: {
    50: '#685589',
    500: '#28175a',
    950: '#000000',
  },
}
SCSS
$custom: #28175a;
$custom-light: #685589;
$custom-dark: #000000;
JSON
{
  "hex": "#28175a",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 255.224,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27412,
    "c": 0.11299,
    "h": 288.2
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#28175A
secondary
#7B913C
accent
#E245BB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #28175A

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

Preview Lab → · Contrast checker → · Palette generator →

#28175A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva