#28147A#28147A

#28147A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.158 H 280.5°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#28147A
RGBrgb(40, 20, 122)
HSLhsl(252, 72%, 28%)
HSVhsv(252, 84%, 48%)
CMYKcmyk(67.2%, 83.6%, 0%, 52.2%)
CIE-LABlab(17.26, 39.36, -53.67)
CIE-LCHlch(17.26, 66.56, 306.25°)
OKLaboklab(30.44% 0.0287 -0.1549)
OKLCHoklch(30.44% 0.158 280.5)
XYZxyz(4.6370, 2.3562, 18.6190)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28147A #667A14
analogous
#14337A #28147A #5B147A
triadic
#28147A #7A2814 #147A28
tetradic
#28147A #7A1433 #667A14 #147A5B
square
#28147A #7A1433 #667A14 #147A5B
split-complementary
#28147A #7A5B14 #337A14
monochromatic
#09041A #170B45 #28147A #391DAF #4F2CDC

Accessibility & contrast

On white

14.27
#28147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#28147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28147A
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28147A#FFFFFF#000000##FFFFFF
##28147A1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28147a;
/* rgb */ color: rgb(40, 20, 122);
/* oklch */ color: oklch(30.4% 0.158 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f56a2',
    500: '#28147a',
    950: '#000000',
  },
}
SCSS
$custom: #28147a;
$custom-light: #6f56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28147a",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 251.765,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30441,
    "c": 0.15756,
    "h": 280.5
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#28147A
secondary
#99B03A
accent
#EF39CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28147A

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

Preview Lab → · Contrast checker → · Palette generator →

#28147A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva