#301881#301881

#301881 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.161 H 283.2°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#301881
RGBrgb(48, 24, 129)
HSLhsl(254, 69%, 30%)
HSVhsv(254, 81%, 51%)
CMYKcmyk(62.8%, 81.4%, 0%, 49.4%)
CIE-LABlab(19.50, 40.46, -54.40)
CIE-LCHlch(19.50, 67.79, 306.64°)
OKLaboklab(32.42% 0.0369 -0.1568)
OKLCHoklch(32.42% 0.161 283.2)
XYZxyz(5.5068, 2.8662, 21.0277)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301881 #698118
analogous
#183581 #301881 #641881
triadic
#301881 #813018 #188130
tetradic
#301881 #811835 #698118 #188164
square
#301881 #811835 #698118 #188164
split-complementary
#301881 #816418 #358118
monochromatic
#0A051A #1D0E4D #301881 #4322B5 #5E39DA

Accessibility & contrast

On white

13.35
#301881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301881
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301881#FFFFFF#000000##FFFFFF
##3018811.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301881;
/* rgb */ color: rgb(48, 24, 129);
/* oklch */ color: oklch(32.4% 0.161 283.2);
Tailwind
colors: {
  custom: {
    50: '#7459a7',
    500: '#301881',
    950: '#000000',
  },
}
SCSS
$custom: #301881;
$custom-light: #7459a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301881",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 253.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.32425,
    "c": 0.16113,
    "h": 283.2
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#301881
secondary
#9AB540
accent
#EB3CC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301881

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

Preview Lab → · Contrast checker → · Palette generator →

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