#28174B#28174B

#28174B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.092 H 294.1°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#28174B
RGBrgb(40, 23, 75)
HSLhsl(260, 53%, 19%)
HSVhsv(260, 69%, 29%)
CMYKcmyk(46.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.06, 22.47, -29.37)
CIE-LCHlch(13.06, 36.98, 307.43°)
OKLaboklab(26.01% 0.0376 -0.0838)
OKLCHoklch(26.01% 0.092 294.1)
XYZxyz(2.4511, 1.5718, 6.8295)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28174B #3A4B17
analogous
#17204B #28174B #42174B
triadic
#28174B #4B2817 #174B28
tetradic
#28174B #4B1720 #3A4B17 #174B42
square
#28174B #4B1720 #3A4B17 #174B42
split-complementary
#28174B #4B4217 #204B17
monochromatic
#0C0717 #0F091C #28174B #41257A #5A34A9

Accessibility & contrast

On white

15.98
#28174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#28174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28174B
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28174B#FFFFFF#000000##FFFFFF
##28174B1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#1F232E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28174b;
/* rgb */ color: rgb(40, 23, 75);
/* oklch */ color: oklch(26.0% 0.092 294.1);
Tailwind
colors: {
  custom: {
    50: '#65557e',
    500: '#28174b',
    950: '#000000',
  },
}
SCSS
$custom: #28174b;
$custom-light: #65557e;
$custom-dark: #000000;
JSON
{
  "hex": "#28174b",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 259.615,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26013,
    "c": 0.09181,
    "h": 294.1
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#28174B
secondary
#6B823C
accent
#DC4BAD
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28174B

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

Preview Lab → · Contrast checker → · Palette generator →

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