#28174D#28174D

#28174D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.095 H 293.2°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#28174D
RGBrgb(40, 23, 77)
HSLhsl(259, 54%, 20%)
HSVhsv(259, 70%, 30%)
CMYKcmyk(48.1%, 70.1%, 0%, 69.8%)
CIE-LABlab(13.23, 23.12, -30.47)
CIE-LCHlch(13.23, 38.25, 307.20°)
OKLaboklab(26.19% 0.0374 -0.087)
OKLCHoklch(26.19% 0.095 293.2)
XYZxyz(2.5207, 1.5997, 7.1957)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28174D #3C4D17
analogous
#17214D #28174D #43174D
triadic
#28174D #4D2817 #174D28
tetradic
#28174D #4D1721 #3C4D17 #174D43
square
#28174D #4D1721 #3C4D17 #174D43
split-complementary
#28174D #4D4317 #214D17
monochromatic
#0C0718 #10091E #28174D #40257C #5933AB

Accessibility & contrast

On white

15.91
#28174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#28174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28174D
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28174D#FFFFFF#000000##FFFFFF
##28174D1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#1E242F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28174d;
/* rgb */ color: rgb(40, 23, 77);
/* oklch */ color: oklch(26.2% 0.095 293.2);
Tailwind
colors: {
  custom: {
    50: '#66557f',
    500: '#28174d',
    950: '#000000',
  },
}
SCSS
$custom: #28174d;
$custom-light: #66557f;
$custom-dark: #000000;
JSON
{
  "hex": "#28174d",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 258.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2619,
    "c": 0.0947,
    "h": 293.2
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#28174D
secondary
#6D843C
accent
#DD4AAF
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28174D

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

Preview Lab → · Contrast checker → · Palette generator →

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