#28175C#28175C

#28175C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.116 H 287.6°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#28175C
RGBrgb(40, 23, 92)
HSLhsl(255, 60%, 23%)
HSVhsv(255, 75%, 36%)
CMYKcmyk(56.5%, 75%, 0%, 63.9%)
CIE-LABlab(14.60, 28.05, -38.40)
CIE-LCHlch(14.60, 47.56, 306.15°)
OKLaboklab(27.61% 0.0349 -0.1103)
OKLCHoklch(27.61% 0.116 287.6)
XYZxyz(3.1127, 1.8365, 10.3136)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28175C #4B5C17
analogous
#17285C #28175C #4B175C
triadic
#28175C #5C2817 #175C28
tetradic
#28175C #5C1728 #4B5C17 #175C4B
square
#28175C #5C1728 #4B5C17 #175C4B
split-complementary
#28175C #5C4B17 #285C17
monochromatic
#0B0618 #130B2B #28175C #3D238D #532FBE

Accessibility & contrast

On white

15.36
#28175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28175C
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28175C#FFFFFF#000000##FFFFFF
##28175C1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#142937
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28175c;
/* rgb */ color: rgb(40, 23, 92);
/* oklch */ color: oklch(27.6% 0.116 287.6);
Tailwind
colors: {
  custom: {
    50: '#68558b',
    500: '#28175c',
    950: '#000000',
  },
}
SCSS
$custom: #28175c;
$custom-light: #68558b;
$custom-dark: #000000;
JSON
{
  "hex": "#28175c",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 254.783,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27609,
    "c": 0.11573,
    "h": 287.6
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#28175C
secondary
#7D933C
accent
#E345BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28175C

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

Preview Lab → · Contrast checker → · Palette generator →

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