#28147F#28147F

#28147F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.164 H 279.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#28147F
RGBrgb(40, 20, 127)
HSLhsl(251, 73%, 29%)
HSVhsv(251, 84%, 50%)
CMYKcmyk(68.5%, 84.3%, 0%, 50.2%)
CIE-LABlab(17.84, 40.91, -55.89)
CIE-LCHlch(17.84, 69.26, 306.20°)
OKLaboklab(31.02% 0.0271 -0.1614)
OKLCHoklch(31.02% 0.164 279.5)
XYZxyz(4.9548, 2.4833, 20.2928)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28147F #6B7F14
analogous
#14367F #28147F #5E147F
triadic
#28147F #7F2814 #147F28
tetradic
#28147F #7F1436 #6B7F14 #147F5E
square
#28147F #7F1436 #6B7F14 #147F5E
split-complementary
#28147F #7F5E14 #367F14
monochromatic
#08041A #170C4A #28147F #391CB4 #502FDE

Accessibility & contrast

On white

14.03
#28147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#28147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28147F
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28147F#FFFFFF#000000##FFFFFF
##28147F1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28147f;
/* rgb */ color: rgb(40, 20, 127);
/* oklch */ color: oklch(31.0% 0.164 279.5);
Tailwind
colors: {
  custom: {
    50: '#7056a5',
    500: '#28147f',
    950: '#000000',
  },
}
SCSS
$custom: #28147f;
$custom-light: #7056a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28147f",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 251.215,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3102,
    "c": 0.16363,
    "h": 279.5
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#28147F
secondary
#9DB43B
accent
#EF38CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28147F

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

Preview Lab → · Contrast checker → · Palette generator →

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