#301480#301480

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

Color values

HEX#301480
RGBrgb(48, 20, 128)
HSLhsl(256, 73%, 29%)
HSVhsv(256, 84%, 50%)
CMYKcmyk(62.5%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.74, 42.03, -55.01)
CIE-LCHlch(18.74, 69.23, 307.38°)
OKLaboklab(31.87% 0.0396 -0.1586)
OKLCHoklch(31.87% 0.163 284)
XYZxyz(5.3642, 2.6868, 20.6538)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301480 #648014
analogous
#142E80 #301480 #661480
triadic
#301480 #803014 #148030
tetradic
#301480 #80142E #648014 #148066
square
#301480 #80142E #648014 #148066
split-complementary
#301480 #806614 #2E8014
monochromatic
#0A041A #1C0C4B #301480 #441CB5 #5D30DF

Accessibility & contrast

On white

13.66
#301480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301480
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301480#FFFFFF#000000##FFFFFF
##3014801.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301480;
/* rgb */ color: rgb(48, 20, 128);
/* oklch */ color: oklch(31.9% 0.163 284.0);
Tailwind
colors: {
  custom: {
    50: '#7457a6',
    500: '#301480',
    950: '#000000',
  },
}
SCSS
$custom: #301480;
$custom-light: #7457a6;
$custom-dark: #000000;
JSON
{
  "hex": "#301480",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 255.556,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.16346,
    "h": 284
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#301480
secondary
#95B53B
accent
#F038C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301480

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

Preview Lab → · Contrast checker → · Palette generator →

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