#28137B#28137B

#28137B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.160 H 280.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#28137B
RGBrgb(40, 19, 123)
HSLhsl(252, 73%, 28%)
HSVhsv(252, 85%, 48%)
CMYKcmyk(67.5%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.21, 40.14, -54.39)
CIE-LCHlch(17.21, 67.60, 306.43°)
OKLaboklab(30.44% 0.0289 -0.157)
OKLCHoklch(30.44% 0.16 280.4)
XYZxyz(4.6820, 2.3465, 18.9413)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28137B #667B13
analogous
#13327B #28137B #5C137B
triadic
#28137B #7B2813 #137B28
tetradic
#28137B #7B1332 #667B13 #137B5C
square
#28137B #7B1332 #667B13 #137B5C
split-complementary
#28137B #7B5C13 #327B13
monochromatic
#09041B #170B46 #28137B #391BB0 #4F2ADE

Accessibility & contrast

On white

14.29
#28137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28137B
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28137B#FFFFFF#000000##FFFFFF
##28137B1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28137b;
/* rgb */ color: rgb(40, 19, 123);
/* oklch */ color: oklch(30.4% 0.160 280.4);
Tailwind
colors: {
  custom: {
    50: '#6f55a2',
    500: '#28137b',
    950: '#000000',
  },
}
SCSS
$custom: #28137b;
$custom-light: #6f55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28137b",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 252.115,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30444,
    "c": 0.15963,
    "h": 280.4
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#28137B
secondary
#99B139
accent
#F038CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28137B

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

Preview Lab → · Contrast checker → · Palette generator →

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