#301C91#301C91

#301C91 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 279.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#301C91
RGBrgb(48, 28, 145)
HSLhsl(250, 68%, 34%)
HSVhsv(250, 81%, 57%)
CMYKcmyk(66.9%, 80.7%, 0%, 43.1%)
CIE-LABlab(21.95, 43.40, -60.37)
CIE-LCHlch(21.95, 74.35, 305.71°)
OKLaboklab(34.66% 0.0296 -0.1743)
OKLCHoklch(34.66% 0.177 279.6)
XYZxyz(6.7434, 3.5027, 27.1033)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C91 #7D911C
analogous
#1C4391 #301C91 #6B1C91
triadic
#301C91 #91301C #1C9130
tetradic
#301C91 #911C43 #7D911C #1C916B
square
#301C91 #911C43 #7D911C #1C916B
split-complementary
#301C91 #916B1C #43911C
monochromatic
#0E082A #1F125E #301C91 #4126C4 #644BDC

Accessibility & contrast

On white

12.35
#301C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C91
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C91#FFFFFF#000000##FFFFFF
##301C911.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301c91;
/* rgb */ color: rgb(48, 28, 145);
/* oklch */ color: oklch(34.7% 0.177 279.6);
Tailwind
colors: {
  custom: {
    50: '#775cb2',
    500: '#301c91',
    950: '#000000',
  },
}
SCSS
$custom: #301c91;
$custom-light: #775cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#301c91",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 250.256,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34657,
    "c": 0.17681,
    "h": 279.6
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#301C91
secondary
#ABBE4A
accent
#EB3DCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C91

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

Preview Lab → · Contrast checker → · Palette generator →

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