#28137C#28137C

#28137C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.161 H 280.2°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#28137C
RGBrgb(40, 19, 124)
HSLhsl(252, 73%, 28%)
HSVhsv(252, 85%, 49%)
CMYKcmyk(67.7%, 84.7%, 0%, 51.4%)
CIE-LABlab(17.33, 40.45, -54.83)
CIE-LCHlch(17.33, 68.14, 306.42°)
OKLaboklab(30.56% 0.0286 -0.1583)
OKLCHoklch(30.56% 0.161 280.2)
XYZxyz(4.7449, 2.3717, 19.2726)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28137C #677C13
analogous
#13327C #28137C #5C137C
triadic
#28137C #7C2813 #137C28
tetradic
#28137C #7C1332 #677C13 #137C5C
square
#28137C #7C1332 #677C13 #137C5C
split-complementary
#28137C #7C5C13 #327C13
monochromatic
#09041B #170B47 #28137C #391BB1 #4F2BDF

Accessibility & contrast

On white

14.24
#28137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#28137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28137C
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28137C#FFFFFF#000000##FFFFFF
##28137C1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28137c;
/* rgb */ color: rgb(40, 19, 124);
/* oklch */ color: oklch(30.6% 0.161 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f55a3',
    500: '#28137c',
    950: '#000000',
  },
}
SCSS
$custom: #28137c;
$custom-light: #6f55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28137c",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 252,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30561,
    "c": 0.16083,
    "h": 280.2
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#28137C
secondary
#9AB239
accent
#F038CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28137C

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

Preview Lab → · Contrast checker → · Palette generator →

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