#301281#301281

#301281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.8% C 0.166 H 284.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#301281
RGBrgb(48, 18, 129)
HSLhsl(256, 76%, 29%)
HSVhsv(256, 86%, 51%)
CMYKcmyk(62.8%, 86%, 0%, 49.4%)
CIE-LABlab(18.56, 43.19, -55.94)
CIE-LCHlch(18.56, 70.67, 307.67°)
OKLaboklab(31.78% 0.0403 -0.1613)
OKLCHoklch(31.78% 0.166 284)
XYZxyz(5.3965, 2.6456, 20.9909)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301281 #638112
analogous
#122C81 #301281 #681281
triadic
#301281 #813012 #128130
tetradic
#301281 #81122C #638112 #128168
square
#301281 #81122C #638112 #128168
split-complementary
#301281 #816812 #2C8112
monochromatic
#0A041B #1C0B4B #301281 #4419B7 #5D2CE2

Accessibility & contrast

On white

13.73
#301281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301281
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301281#FFFFFF#000000##FFFFFF
##3012811.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301281;
/* rgb */ color: rgb(48, 18, 129);
/* oklch */ color: oklch(31.8% 0.166 284.0);
Tailwind
colors: {
  custom: {
    50: '#7456a7',
    500: '#301281',
    950: '#000000',
  },
}
SCSS
$custom: #301281;
$custom-light: #7456a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301281",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 256.216,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31778,
    "c": 0.16624,
    "h": 284
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#301281
secondary
#94B738
accent
#F236BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301281

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

Preview Lab → · Contrast checker → · Palette generator →

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