#28147C#28147C

#28147C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.160 H 280.1°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#28147C
RGBrgb(40, 20, 124)
HSLhsl(252, 72%, 28%)
HSVhsv(252, 84%, 49%)
CMYKcmyk(67.7%, 83.9%, 0%, 51.4%)
CIE-LABlab(17.49, 39.98, -54.56)
CIE-LCHlch(17.49, 67.64, 306.23°)
OKLaboklab(30.67% 0.0281 -0.1575)
OKLCHoklch(30.67% 0.16 280.1)
XYZxyz(4.7622, 2.4063, 19.2784)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28147C #687C14
analogous
#14347C #28147C #5C147C
triadic
#28147C #7C2814 #147C28
tetradic
#28147C #7C1434 #687C14 #147C5C
square
#28147C #7C1434 #687C14 #147C5C
split-complementary
#28147C #7C5C14 #347C14
monochromatic
#08041A #170B47 #28147C #391DB1 #4F2DDD

Accessibility & contrast

On white

14.18
#28147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#28147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28147C
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28147C#FFFFFF#000000##FFFFFF
##28147C1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28147c;
/* rgb */ color: rgb(40, 20, 124);
/* oklch */ color: oklch(30.7% 0.160 280.1);
Tailwind
colors: {
  custom: {
    50: '#6f56a3',
    500: '#28147c',
    950: '#000000',
  },
}
SCSS
$custom: #28147c;
$custom-light: #6f56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28147c",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 251.538,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30672,
    "c": 0.16,
    "h": 280.1
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#28147C
secondary
#9BB23A
accent
#EF39CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28147C

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

Preview Lab → · Contrast checker → · Palette generator →

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