#301578#301578

#301578 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.153 H 285.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#301578
RGBrgb(48, 21, 120)
HSLhsl(256, 70%, 28%)
HSVhsv(256, 83%, 47%)
CMYKcmyk(60%, 82.5%, 0%, 52.9%)
CIE-LABlab(18.01, 39.19, -51.12)
CIE-LCHlch(18.01, 64.41, 307.48°)
OKLaboklab(31.1% 0.0418 -0.1472)
OKLCHoklch(31.1% 0.153 285.8)
XYZxyz(4.8762, 2.5205, 17.9952)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301578 #5D7815
analogous
#152B78 #301578 #621578
triadic
#301578 #783015 #157830
tetradic
#301578 #78152B #5D7815 #157862
square
#301578 #78152B #5D7815 #157862
split-complementary
#301578 #786215 #2B7815
monochromatic
#0A051A #1B0C44 #301578 #451EAC #5C2DDA

Accessibility & contrast

On white

13.96
#301578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301578
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301578#FFFFFF#000000##FFFFFF
##3015781.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#0A3247
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301578;
/* rgb */ color: rgb(48, 21, 120);
/* oklch */ color: oklch(31.1% 0.153 285.8);
Tailwind
colors: {
  custom: {
    50: '#7257a0',
    500: '#301578',
    950: '#000000',
  },
}
SCSS
$custom: #301578;
$custom-light: #7257a0;
$custom-dark: #000000;
JSON
{
  "hex": "#301578",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 256.364,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31096,
    "c": 0.15306,
    "h": 285.8
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#301578
secondary
#8EAE3B
accent
#ED3BBC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301578

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

Preview Lab → · Contrast checker → · Palette generator →

#301578 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva