#28137D#28137D

#28137D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.162 H 280.0°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#28137D
RGBrgb(40, 19, 125)
HSLhsl(252, 74%, 28%)
HSVhsv(252, 85%, 49%)
CMYKcmyk(68%, 84.8%, 0%, 51%)
CIE-LABlab(17.45, 40.76, -55.27)
CIE-LCHlch(17.45, 68.67, 306.40°)
OKLaboklab(30.68% 0.0282 -0.1596)
OKLCHoklch(30.68% 0.162 280)
XYZxyz(4.8084, 2.3971, 19.6074)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28137D #687D13
analogous
#13337D #28137D #5D137D
triadic
#28137D #7D2813 #137D28
tetradic
#28137D #7D1333 #687D13 #137D5D
square
#28137D #7D1333 #687D13 #137D5D
split-complementary
#28137D #7D5D13 #337D13
monochromatic
#09041B #170B48 #28137D #391BB2 #4F2CDF

Accessibility & contrast

On white

14.19
#28137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#28137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28137D
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28137D#FFFFFF#000000##FFFFFF
##28137D1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28137d;
/* rgb */ color: rgb(40, 19, 125);
/* oklch */ color: oklch(30.7% 0.162 280.0);
Tailwind
colors: {
  custom: {
    50: '#7055a4',
    500: '#28137d',
    950: '#000000',
  },
}
SCSS
$custom: #28137d;
$custom-light: #7055a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28137d",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 251.887,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30677,
    "c": 0.16204,
    "h": 280
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#28137D
secondary
#9BB339
accent
#F038CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28137D

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

Preview Lab → · Contrast checker → · Palette generator →

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