#301584#301584

#301584 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.167 H 283.0°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#301584
RGBrgb(48, 21, 132)
HSLhsl(255, 73%, 30%)
HSVhsv(255, 84%, 52%)
CMYKcmyk(63.6%, 84.1%, 0%, 48.2%)
CIE-LABlab(19.35, 42.77, -56.54)
CIE-LCHlch(19.35, 70.89, 307.11°)
OKLaboklab(32.42% 0.0376 -0.1631)
OKLCHoklch(32.42% 0.167 283)
XYZxyz(5.6507, 2.8303, 22.0738)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301584 #698415
analogous
#153184 #301584 #681584
triadic
#301584 #843015 #158430
tetradic
#301584 #841531 #698415 #158468
square
#301584 #841531 #698415 #158468
split-complementary
#301584 #846815 #318415
monochromatic
#0A041A #1D0D4F #301584 #431DB9 #5E35DF

Accessibility & contrast

On white

13.41
#301584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301584
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301584#FFFFFF#000000##FFFFFF
##3015841.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00374E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301584;
/* rgb */ color: rgb(48, 21, 132);
/* oklch */ color: oklch(32.4% 0.167 283.0);
Tailwind
colors: {
  custom: {
    50: '#7558a9',
    500: '#301584',
    950: '#000000',
  },
}
SCSS
$custom: #301584;
$custom-light: #7558a9;
$custom-dark: #000000;
JSON
{
  "hex": "#301584",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 254.595,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.32421,
    "c": 0.16735,
    "h": 283
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#301584
secondary
#9AB93C
accent
#EF39C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301584

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

Preview Lab → · Contrast checker → · Palette generator →

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