#301C86#301C86

#301C86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.163 H 281.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#301C86
RGBrgb(48, 28, 134)
HSLhsl(251, 65%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(64.2%, 79.1%, 0%, 47.5%)
CIE-LABlab(20.75, 39.97, -55.49)
CIE-LCHlch(20.75, 68.39, 305.77°)
OKLaboklab(33.46% 0.0328 -0.1601)
OKLCHoklch(33.46% 0.163 281.6)
XYZxyz(5.9359, 3.1797, 22.8506)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C86 #72861C
analogous
#1C3D86 #301C86 #651C86
triadic
#301C86 #86301C #1C8630
tetradic
#301C86 #861C3D #72861C #1C8665
square
#301C86 #861C3D #72861C #1C8665
split-complementary
#301C86 #86651C #3D861C
monochromatic
#0C0721 #1E1153 #301C86 #4227B9 #6044D8

Accessibility & contrast

On white

12.84
#301C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C86
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C86#FFFFFF#000000##FFFFFF
##301C861.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301c86;
/* rgb */ color: rgb(48, 28, 134);
/* oklch */ color: oklch(33.5% 0.163 281.6);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#301c86',
    950: '#000000',
  },
}
SCSS
$custom: #301c86;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#301c86",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 251.321,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33458,
    "c": 0.16342,
    "h": 281.6
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#301C86
secondary
#A3B945
accent
#E83FC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C86

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

Preview Lab → · Contrast checker → · Palette generator →

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