#28147D#28147D

#28147D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.161 H 279.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#28147D
RGBrgb(40, 20, 125)
HSLhsl(251, 72%, 28%)
HSVhsv(251, 84%, 49%)
CMYKcmyk(68%, 84%, 0%, 51%)
CIE-LABlab(17.61, 40.29, -55.01)
CIE-LCHlch(17.61, 68.18, 306.22°)
OKLaboklab(30.79% 0.0277 -0.1588)
OKLCHoklch(30.79% 0.161 279.9)
XYZxyz(4.8257, 2.4317, 19.6131)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28147D #697D14
analogous
#14347D #28147D #5C147D
triadic
#28147D #7D2814 #147D28
tetradic
#28147D #7D1434 #697D14 #147D5C
square
#28147D #7D1434 #697D14 #147D5C
split-complementary
#28147D #7D5C14 #347D14
monochromatic
#08041A #170C48 #28147D #391CB2 #4F2EDE

Accessibility & contrast

On white

14.13
#28147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#28147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28147D
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28147D#FFFFFF#000000##FFFFFF
##28147D1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28147d;
/* rgb */ color: rgb(40, 20, 125);
/* oklch */ color: oklch(30.8% 0.161 279.9);
Tailwind
colors: {
  custom: {
    50: '#7056a4',
    500: '#28147d',
    950: '#000000',
  },
}
SCSS
$custom: #28147d;
$custom-light: #7056a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28147d",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 251.429,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30788,
    "c": 0.16121,
    "h": 279.9
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28147D

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

Preview Lab → · Contrast checker → · Palette generator →

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