#301C79#301C79

#301C79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.147 H 284.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#301C79
RGBrgb(48, 28, 121)
HSLhsl(253, 62%, 29%)
HSVhsv(253, 77%, 47%)
CMYKcmyk(60.3%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.39, 35.86, -49.49)
CIE-LCHlch(19.39, 61.12, 305.93°)
OKLaboklab(32.09% 0.0364 -0.1426)
OKLCHoklch(32.09% 0.147 284.3)
XYZxyz(5.0843, 2.8390, 18.3655)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C79 #65791C
analogous
#1C3779 #301C79 #5F1C79
triadic
#301C79 #79301C #1C7930
tetradic
#301C79 #791C37 #65791C #1C795F
square
#301C79 #791C37 #65791C #1C795F
split-complementary
#301C79 #795F1C #37791C
monochromatic
#0A0619 #1C1047 #301C79 #4428AB #5D3DD2

Accessibility & contrast

On white

13.39
#301C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C79
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C79#FFFFFF#000000##FFFFFF
##301C791.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#073649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301c79;
/* rgb */ color: rgb(48, 28, 121);
/* oklch */ color: oklch(32.1% 0.147 284.3);
Tailwind
colors: {
  custom: {
    50: '#725ba1',
    500: '#301c79',
    950: '#000000',
  },
}
SCSS
$custom: #301c79;
$custom-light: #725ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#301c79",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 252.903,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32091,
    "c": 0.14712,
    "h": 284.3
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#301C79
secondary
#96AD44
accent
#E542C2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301C79

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

Preview Lab → · Contrast checker → · Palette generator →

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