#301381#301381

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

Color values

HEX#301381
RGBrgb(48, 19, 129)
HSLhsl(256, 74%, 29%)
HSVhsv(256, 85%, 51%)
CMYKcmyk(62.8%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.71, 42.77, -55.71)
CIE-LCHlch(18.71, 70.23, 307.51°)
OKLaboklab(31.88% 0.0398 -0.1606)
OKLCHoklch(31.88% 0.165 283.9)
XYZxyz(5.4130, 2.6787, 20.9964)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301381 #648113
analogous
#132D81 #301381 #671381
triadic
#301381 #813013 #138130
tetradic
#301381 #81132D #648113 #138167
square
#301381 #81132D #648113 #138167
split-complementary
#301381 #816713 #2D8113
monochromatic
#0A041B #1C0B4C #301381 #441BB6 #5D2EE0

Accessibility & contrast

On white

13.67
#301381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301381
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301381#FFFFFF#000000##FFFFFF
##3013811.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301381;
/* rgb */ color: rgb(48, 19, 129);
/* oklch */ color: oklch(31.9% 0.165 283.9);
Tailwind
colors: {
  custom: {
    50: '#7456a7',
    500: '#301381',
    950: '#000000',
  },
}
SCSS
$custom: #301381;
$custom-light: #7456a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301381",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 255.818,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31877,
    "c": 0.16546,
    "h": 283.9
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#301381
secondary
#95B63A
accent
#F137C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301381

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

Preview Lab → · Contrast checker → · Palette generator →

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