#301D76#301D76

#301D76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.142 H 284.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#301D76
RGBrgb(48, 29, 118)
HSLhsl(253, 61%, 29%)
HSVhsv(253, 75%, 46%)
CMYKcmyk(59.3%, 75.4%, 0%, 53.7%)
CIE-LABlab(19.29, 34.34, -47.73)
CIE-LCHlch(19.29, 58.80, 305.73°)
OKLaboklab(31.93% 0.0363 -0.1374)
OKLCHoklch(31.93% 0.142 284.8)
XYZxyz(4.9273, 2.8148, 17.4197)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D76 #63761D
analogous
#1D3776 #301D76 #5D1D76
triadic
#301D76 #76301D #1D7630
tetradic
#301D76 #761D37 #63761D #1D765D
square
#301D76 #761D37 #63761D #1D765D
split-complementary
#301D76 #765D1D #37761D
monochromatic
#0A0619 #1C1145 #301D76 #4429A7 #5D3ED0

Accessibility & contrast

On white

13.44
#301D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D76
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D76#FFFFFF#000000##FFFFFF
##301D761.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#0C3547
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301d76;
/* rgb */ color: rgb(48, 29, 118);
/* oklch */ color: oklch(31.9% 0.142 284.8);
Tailwind
colors: {
  custom: {
    50: '#715b9e',
    500: '#301d76',
    950: '#000000',
  },
}
SCSS
$custom: #301d76;
$custom-light: #715b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301d76",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 118
  },
  "hsl": {
    "h": 252.809,
    "s": 60.544,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31928,
    "c": 0.14214,
    "h": 284.8
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#301D76
secondary
#94AA45
accent
#E444C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301D76

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

Preview Lab → · Contrast checker → · Palette generator →

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