#301481#301481

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

Color values

HEX#301481
RGBrgb(48, 20, 129)
HSLhsl(255, 73%, 29%)
HSVhsv(255, 84%, 51%)
CMYKcmyk(62.8%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.86, 42.33, -55.46)
CIE-LCHlch(18.86, 69.77, 307.35°)
OKLaboklab(31.98% 0.0393 -0.1599)
OKLCHoklch(31.98% 0.165 283.8)
XYZxyz(5.4303, 2.7133, 21.0022)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301481 #658114
analogous
#142F81 #301481 #671481
triadic
#301481 #813014 #148130
tetradic
#301481 #81142F #658114 #148167
square
#301481 #81142F #658114 #148167
split-complementary
#301481 #816714 #2F8114
monochromatic
#0A041A #1C0C4C #301481 #441CB6 #5D30DF

Accessibility & contrast

On white

13.61
#301481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301481
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301481#FFFFFF#000000##FFFFFF
##3014811.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301481;
/* rgb */ color: rgb(48, 20, 129);
/* oklch */ color: oklch(32.0% 0.165 283.8);
Tailwind
colors: {
  custom: {
    50: '#7457a7',
    500: '#301481',
    950: '#000000',
  },
}
SCSS
$custom: #301481;
$custom-light: #7457a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301481",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 255.413,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31979,
    "c": 0.16464,
    "h": 283.8
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#301481
secondary
#96B63B
accent
#F038C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301481

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

Preview Lab → · Contrast checker → · Palette generator →

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