#28177B#28177B

#28177B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.156 H 279.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#28177B
RGBrgb(40, 23, 123)
HSLhsl(250, 68%, 29%)
HSVhsv(250, 81%, 48%)
CMYKcmyk(67.5%, 81.3%, 0%, 51.8%)
CIE-LABlab(17.89, 38.17, -53.26)
CIE-LCHlch(17.89, 65.53, 305.62°)
OKLaboklab(30.92% 0.0267 -0.1538)
OKLCHoklch(30.92% 0.156 279.9)
XYZxyz(4.7555, 2.4936, 18.9658)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28177B #6A7B17
analogous
#17387B #28177B #5A177B
triadic
#28177B #7B2817 #177B28
tetradic
#28177B #7B1738 #6A7B17 #177B5A
square
#28177B #7B1738 #6A7B17 #177B5A
split-complementary
#28177B #7B5A17 #387B17
monochromatic
#08051A #170D47 #28177B #3921AF #5033D9

Accessibility & contrast

On white

14.01
#28177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#28177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28177B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28177B#FFFFFF#000000##FFFFFF
##28177B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28177b;
/* rgb */ color: rgb(40, 23, 123);
/* oklch */ color: oklch(30.9% 0.156 279.9);
Tailwind
colors: {
  custom: {
    50: '#6f57a2',
    500: '#28177b',
    950: '#000000',
  },
}
SCSS
$custom: #28177b;
$custom-light: #6f57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28177b",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 250.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30916,
    "c": 0.15609,
    "h": 279.9
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#28177B
secondary
#9DB03E
accent
#EB3CCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28177B

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

Preview Lab → · Contrast checker → · Palette generator →

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