#301C85#301C85

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

Color values

HEX#301C85
RGBrgb(48, 28, 133)
HSLhsl(251, 65%, 32%)
HSVhsv(251, 79%, 52%)
CMYKcmyk(63.9%, 78.9%, 0%, 47.8%)
CIE-LABlab(20.64, 39.66, -55.04)
CIE-LCHlch(20.64, 67.84, 305.77°)
OKLaboklab(33.35% 0.0331 -0.1588)
OKLCHoklch(33.35% 0.162 281.8)
XYZxyz(5.8665, 3.1519, 22.4850)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C85 #71851C
analogous
#1C3D85 #301C85 #651C85
triadic
#301C85 #85301C #1C8530
tetradic
#301C85 #851C3D #71851C #1C8565
square
#301C85 #851C3D #71851C #1C8565
split-complementary
#301C85 #85651C #3D851C
monochromatic
#0C0720 #1E1152 #301C85 #4227B8 #6044D8

Accessibility & contrast

On white

12.88
#301C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C85
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C85#FFFFFF#000000##FFFFFF
##301C851.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301c85;
/* rgb */ color: rgb(48, 28, 133);
/* oklch */ color: oklch(33.4% 0.162 281.8);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#301c85',
    950: '#000000',
  },
}
SCSS
$custom: #301c85;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#301c85",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 251.429,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33351,
    "c": 0.16218,
    "h": 281.8
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#301C85
secondary
#A2B845
accent
#E840C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C85

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

Preview Lab → · Contrast checker → · Palette generator →

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