#28137E#28137E

#28137E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.163 H 279.8°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#28137E
RGBrgb(40, 19, 126)
HSLhsl(252, 74%, 28%)
HSVhsv(252, 85%, 49%)
CMYKcmyk(68.3%, 84.9%, 0%, 50.6%)
CIE-LABlab(17.57, 41.06, -55.71)
CIE-LCHlch(17.57, 69.21, 306.39°)
OKLaboklab(30.79% 0.0279 -0.1608)
OKLCHoklch(30.79% 0.163 279.8)
XYZxyz(4.8726, 2.4228, 19.9455)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28137E #697E13
analogous
#13337E #28137E #5D137E
triadic
#28137E #7E2813 #137E28
tetradic
#28137E #7E1333 #697E13 #137E5D
square
#28137E #7E1333 #697E13 #137E5D
split-complementary
#28137E #7E5D13 #337E13
monochromatic
#08041B #170B49 #28137E #391BB3 #4F2CDF

Accessibility & contrast

On white

14.15
#28137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28137E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28137E#FFFFFF#000000##FFFFFF
##28137E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28137e;
/* rgb */ color: rgb(40, 19, 126);
/* oklch */ color: oklch(30.8% 0.163 279.8);
Tailwind
colors: {
  custom: {
    50: '#7055a5',
    500: '#28137e',
    950: '#000000',
  },
}
SCSS
$custom: #28137e;
$custom-light: #7055a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28137e",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 251.776,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30794,
    "c": 0.16325,
    "h": 279.8
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#28137E
secondary
#9CB439
accent
#F037CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28137E

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

Preview Lab → · Contrast checker → · Palette generator →

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