#301C84#301C84

#301C84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.161 H 282.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#301C84
RGBrgb(48, 28, 132)
HSLhsl(252, 65%, 31%)
HSVhsv(252, 79%, 52%)
CMYKcmyk(63.6%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.54, 39.34, -54.59)
CIE-LCHlch(20.54, 67.29, 305.78°)
OKLaboklab(33.24% 0.0334 -0.1574)
OKLCHoklch(33.24% 0.161 282)
XYZxyz(5.7977, 3.1244, 22.1229)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C84 #70841C
analogous
#1C3C84 #301C84 #641C84
triadic
#301C84 #84301C #1C8430
tetradic
#301C84 #841C3C #70841C #1C8464
square
#301C84 #841C3C #70841C #1C8464
split-complementary
#301C84 #84641C #3C841C
monochromatic
#0B071F #1E1152 #301C84 #4227B6 #6043D7

Accessibility & contrast

On white

12.92
#301C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C84
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C84#FFFFFF#000000##FFFFFF
##301C841.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301c84;
/* rgb */ color: rgb(48, 28, 132);
/* oklch */ color: oklch(33.2% 0.161 282.0);
Tailwind
colors: {
  custom: {
    50: '#745ba9',
    500: '#301c84',
    950: '#000000',
  },
}
SCSS
$custom: #301c84;
$custom-light: #745ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#301c84",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 251.538,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33244,
    "c": 0.16094,
    "h": 282
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#301C84
secondary
#A1B745
accent
#E840C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C84

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

Preview Lab → · Contrast checker → · Palette generator →

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