#301C81#301C81

#301C81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.157 H 282.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#301C81
RGBrgb(48, 28, 129)
HSLhsl(252, 64%, 31%)
HSVhsv(252, 78%, 51%)
CMYKcmyk(62.8%, 78.3%, 0%, 49.4%)
CIE-LABlab(20.22, 38.40, -53.21)
CIE-LCHlch(20.22, 65.62, 305.81°)
OKLaboklab(32.93% 0.0342 -0.1534)
OKLCHoklch(32.93% 0.157 282.6)
XYZxyz(5.5954, 3.0435, 21.0572)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C81 #6D811C
analogous
#1C3A81 #301C81 #621C81
triadic
#301C81 #81301C #1C8130
tetradic
#301C81 #811C3A #6D811C #1C8162
square
#301C81 #811C3A #6D811C #1C8162
split-complementary
#301C81 #81621C #3A811C
monochromatic
#0B061C #1D114F #301C81 #4327B3 #5F42D6

Accessibility & contrast

On white

13.05
#301C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C81
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C81#FFFFFF#000000##FFFFFF
##301C811.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301c81;
/* rgb */ color: rgb(48, 28, 129);
/* oklch */ color: oklch(32.9% 0.157 282.6);
Tailwind
colors: {
  custom: {
    50: '#735ba7',
    500: '#301c81',
    950: '#000000',
  },
}
SCSS
$custom: #301c81;
$custom-light: #735ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#301c81",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 251.881,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32926,
    "c": 0.15721,
    "h": 282.6
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#301C81
secondary
#9EB444
accent
#E740C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C81

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

Preview Lab → · Contrast checker → · Palette generator →

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