#28173E#28173E

#28173E is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.073 H 301.5°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#28173E
RGBrgb(40, 23, 62)
HSLhsl(266, 46%, 17%)
HSVhsv(266, 63%, 24%)
CMYKcmyk(35.5%, 62.9%, 0%, 75.7%)
CIE-LABlab(12.04, 18.36, -21.92)
CIE-LCHlch(12.04, 28.59, 309.94°)
OKLaboklab(24.94% 0.0379 -0.0619)
OKLCHoklch(24.94% 0.073 301.5)
XYZxyz(2.0508, 1.4117, 4.7209)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28173E #2D3E17
analogous
#171A3E #28173E #3C173E
triadic
#28173E #3E2817 #173E28
tetradic
#28173E #3E171A #2D3E17 #173E3C
square
#28173E #3E171A #2D3E17 #173E3C
split-complementary
#28173E #3E3C17 #1A3E17
monochromatic
#0E0816 #0E0816 #28173E #45286B #623897

Accessibility & contrast

On white

16.38
#28173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#28173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28173E
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28173E#FFFFFF#000000##FFFFFF
##28173E1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081F3F
Deuteranopia (green-blind)
#0D1F3D
Tritanopia (blue-blind)
#241F27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28173e;
/* rgb */ color: rgb(40, 23, 62);
/* oklch */ color: oklch(24.9% 0.073 301.5);
Tailwind
colors: {
  custom: {
    50: '#645473',
    500: '#28173e',
    950: '#000000',
  },
}
SCSS
$custom: #28173e;
$custom-light: #645473;
$custom-dark: #000000;
JSON
{
  "hex": "#28173e",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 266.154,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24939,
    "c": 0.07259,
    "h": 301.5
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#28173E
secondary
#5C753C
accent
#D6529C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #28173E

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

Preview Lab → · Contrast checker → · Palette generator →

#28173E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva