#28175D#28175D

#28175D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.117 H 287.2°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#28175D
RGBrgb(40, 23, 93)
HSLhsl(255, 60%, 23%)
HSVhsv(255, 75%, 36%)
CMYKcmyk(57%, 75.3%, 0%, 63.5%)
CIE-LABlab(14.70, 28.38, -38.91)
CIE-LCHlch(14.70, 48.16, 306.11°)
OKLaboklab(27.71% 0.0347 -0.1118)
OKLCHoklch(27.71% 0.117 287.2)
XYZxyz(3.1567, 1.8541, 10.5453)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28175D #4C5D17
analogous
#17295D #28175D #4B175D
triadic
#28175D #5D2817 #175D28
tetradic
#28175D #5D1729 #4C5D17 #175D4B
square
#28175D #5D1729 #4C5D17 #175D4B
split-complementary
#28175D #5D4B17 #295D17
monochromatic
#0B0619 #130B2C #28175D #3D238E #522FBF

Accessibility & contrast

On white

15.32
#28175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28175D
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28175D#FFFFFF#000000##FFFFFF
##28175D1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#132938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28175d;
/* rgb */ color: rgb(40, 23, 93);
/* oklch */ color: oklch(27.7% 0.117 287.2);
Tailwind
colors: {
  custom: {
    50: '#68558c',
    500: '#28175d',
    950: '#000000',
  },
}
SCSS
$custom: #28175d;
$custom-light: #68558c;
$custom-dark: #000000;
JSON
{
  "hex": "#28175d",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 254.571,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27709,
    "c": 0.1171,
    "h": 287.2
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#28175D
secondary
#7E943C
accent
#E344BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28175D

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

Preview Lab → · Contrast checker → · Palette generator →

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