#301D84#301D84

#301D84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.160 H 281.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#301D84
RGBrgb(48, 29, 132)
HSLhsl(251, 64%, 32%)
HSVhsv(251, 78%, 52%)
CMYKcmyk(63.6%, 78%, 0%, 48.2%)
CIE-LABlab(20.72, 38.81, -54.28)
CIE-LCHlch(20.72, 66.72, 305.57°)
OKLaboklab(33.38% 0.0327 -0.1565)
OKLCHoklch(33.38% 0.16 281.8)
XYZxyz(5.8218, 3.1726, 22.1309)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D84 #71841D
analogous
#1D3E84 #301D84 #641D84
triadic
#301D84 #84301D #1D8430
tetradic
#301D84 #841D3E #71841D #1D8464
square
#301D84 #841D3E #71841D #1D8464
split-complementary
#301D84 #84641D #3E841D
monochromatic
#0C0720 #1E1252 #301D84 #4228B6 #6045D6

Accessibility & contrast

On white

12.85
#301D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D84
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D84#FFFFFF#000000##FFFFFF
##301D841.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301d84;
/* rgb */ color: rgb(48, 29, 132);
/* oklch */ color: oklch(33.4% 0.160 281.8);
Tailwind
colors: {
  custom: {
    50: '#745ca9',
    500: '#301d84',
    950: '#000000',
  },
}
SCSS
$custom: #301d84;
$custom-light: #745ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#301d84",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 251.068,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33375,
    "c": 0.15993,
    "h": 281.8
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#301D84
secondary
#A2B746
accent
#E741C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D84

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

Preview Lab → · Contrast checker → · Palette generator →

#301D84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva