#28177D#28177D

#28177D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.159 H 279.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#28177D
RGBrgb(40, 23, 125)
HSLhsl(250, 69%, 29%)
HSVhsv(250, 82%, 49%)
CMYKcmyk(68%, 81.6%, 0%, 51%)
CIE-LABlab(18.12, 38.80, -54.16)
CIE-LCHlch(18.12, 66.63, 305.62°)
OKLaboklab(31.14% 0.0261 -0.1564)
OKLCHoklch(31.14% 0.159 279.5)
XYZxyz(4.8820, 2.5442, 19.6319)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28177D #6C7D17
analogous
#17397D #28177D #5B177D
triadic
#28177D #7D2817 #177D28
tetradic
#28177D #7D1739 #6C7D17 #177D5B
square
#28177D #7D1739 #6C7D17 #177D5B
split-complementary
#28177D #7D5B17 #397D17
monochromatic
#08051A #170D49 #28177D #3921B1 #5035DA

Accessibility & contrast

On white

13.92
#28177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#28177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28177D
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28177D#FFFFFF#000000##FFFFFF
##28177D1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28177d;
/* rgb */ color: rgb(40, 23, 125);
/* oklch */ color: oklch(31.1% 0.159 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f57a4',
    500: '#28177d',
    950: '#000000',
  },
}
SCSS
$custom: #28177d;
$custom-light: #6f57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28177d",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 250,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31142,
    "c": 0.15857,
    "h": 279.5
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#28177D
secondary
#9EB23E
accent
#EC3CCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28177D

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

Preview Lab → · Contrast checker → · Palette generator →

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