#28177A#28177A

#28177A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.155 H 280.0°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#28177A
RGBrgb(40, 23, 122)
HSLhsl(250, 68%, 28%)
HSVhsv(250, 81%, 48%)
CMYKcmyk(67.2%, 81.1%, 0%, 52.2%)
CIE-LABlab(17.78, 37.85, -52.81)
CIE-LCHlch(17.78, 64.97, 305.63°)
OKLaboklab(30.8% 0.027 -0.1525)
OKLCHoklch(30.8% 0.155 280)
XYZxyz(4.6932, 2.4687, 18.6378)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28177A #697A17
analogous
#17377A #28177A #59177A
triadic
#28177A #7A2817 #177A28
tetradic
#28177A #7A1737 #697A17 #177A59
square
#28177A #7A1737 #697A17 #177A59
split-complementary
#28177A #7A5917 #377A17
monochromatic
#08051A #170D47 #28177A #3921AD #4F33D9

Accessibility & contrast

On white

14.06
#28177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#28177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28177A
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28177A#FFFFFF#000000##FFFFFF
##28177A1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28177a;
/* rgb */ color: rgb(40, 23, 122);
/* oklch */ color: oklch(30.8% 0.155 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f57a2',
    500: '#28177a',
    950: '#000000',
  },
}
SCSS
$custom: #28177a;
$custom-light: #6f57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28177a",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 250.303,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30803,
    "c": 0.15484,
    "h": 280
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#28177A
secondary
#9CAF3E
accent
#EB3DCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28177A

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

Preview Lab → · Contrast checker → · Palette generator →

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