#301580#301580

#301580 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.163 H 283.9°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#301580
RGBrgb(48, 21, 128)
HSLhsl(255, 72%, 29%)
HSVhsv(255, 84%, 50%)
CMYKcmyk(62.5%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.90, 41.58, -54.76)
CIE-LCHlch(18.90, 68.76, 307.21°)
OKLaboklab(31.97% 0.039 -0.1579)
OKLCHoklch(31.97% 0.163 283.9)
XYZxyz(5.3822, 2.7229, 20.6598)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301580 #658015
analogous
#153080 #301580 #661580
triadic
#301580 #803015 #158030
tetradic
#301580 #801530 #658015 #158066
square
#301580 #801530 #658015 #158066
split-complementary
#301580 #806615 #308015
monochromatic
#0A041A #1C0C4B #301580 #441EB5 #5D32DD

Accessibility & contrast

On white

13.60
#301580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301580
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301580#FFFFFF#000000##FFFFFF
##3015801.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301580;
/* rgb */ color: rgb(48, 21, 128);
/* oklch */ color: oklch(32.0% 0.163 283.9);
Tailwind
colors: {
  custom: {
    50: '#7457a6',
    500: '#301580',
    950: '#000000',
  },
}
SCSS
$custom: #301580;
$custom-light: #7457a6;
$custom-dark: #000000;
JSON
{
  "hex": "#301580",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 255.14,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31974,
    "c": 0.16262,
    "h": 283.9
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#301580
secondary
#96B53C
accent
#EF39C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301580

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

Preview Lab → · Contrast checker → · Palette generator →

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