#301D86#301D86

#301D86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.162 H 281.4°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#301D86
RGBrgb(48, 29, 134)
HSLhsl(251, 64%, 32%)
HSVhsv(251, 78%, 53%)
CMYKcmyk(64.2%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.93, 39.44, -55.19)
CIE-LCHlch(20.93, 67.83, 305.55°)
OKLaboklab(33.59% 0.0322 -0.1592)
OKLCHoklch(33.59% 0.162 281.4)
XYZxyz(5.9600, 3.2279, 22.8586)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D86 #73861D
analogous
#1D3F86 #301D86 #651D86
triadic
#301D86 #86301D #1D8630
tetradic
#301D86 #861D3F #73861D #1D8665
square
#301D86 #861D3F #73861D #1D8665
split-complementary
#301D86 #86651D #3F861D
monochromatic
#0C0721 #1E1254 #301D86 #4228B8 #6146D7

Accessibility & contrast

On white

12.76
#301D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#301D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D86
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D86#FFFFFF#000000##FFFFFF
##301D861.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301d86;
/* rgb */ color: rgb(48, 29, 134);
/* oklch */ color: oklch(33.6% 0.162 281.4);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#301d86',
    950: '#000000',
  },
}
SCSS
$custom: #301d86;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#301d86",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 250.857,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33588,
    "c": 0.16243,
    "h": 281.4
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#301D86
secondary
#A4B946
accent
#E740C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D86

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

Preview Lab → · Contrast checker → · Palette generator →

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