#301581#301581

#301581 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.164 H 283.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#301581
RGBrgb(48, 21, 129)
HSLhsl(255, 72%, 29%)
HSVhsv(255, 84%, 51%)
CMYKcmyk(62.8%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.01, 41.88, -55.21)
CIE-LCHlch(19.01, 69.29, 307.18°)
OKLaboklab(32.09% 0.0387 -0.1592)
OKLCHoklch(32.09% 0.164 283.7)
XYZxyz(5.4483, 2.7493, 21.0082)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301581 #668115
analogous
#153081 #301581 #661581
triadic
#301581 #813015 #158130
tetradic
#301581 #811530 #668115 #158166
square
#301581 #811530 #668115 #158166
split-complementary
#301581 #816615 #308115
monochromatic
#0A041A #1C0C4C #301581 #441EB6 #5D33DE

Accessibility & contrast

On white

13.55
#301581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301581
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301581#FFFFFF#000000##FFFFFF
##3015811.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301581;
/* rgb */ color: rgb(48, 21, 129);
/* oklch */ color: oklch(32.1% 0.164 283.7);
Tailwind
colors: {
  custom: {
    50: '#7457a7',
    500: '#301581',
    950: '#000000',
  },
}
SCSS
$custom: #301581;
$custom-light: #7457a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301581",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 255,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32085,
    "c": 0.1638,
    "h": 283.7
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#301581
secondary
#97B63C
accent
#EF39C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301581

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

Preview Lab → · Contrast checker → · Palette generator →

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