#301A96#301A96

#301A96 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.184 H 279.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#301A96
RGBrgb(48, 26, 150)
HSLhsl(251, 70%, 35%)
HSVhsv(251, 83%, 59%)
CMYKcmyk(68%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.19, 45.88, -63.07)
CIE-LCHlch(22.19, 78.00, 306.03°)
OKLaboklab(34.99% 0.0291 -0.1821)
OKLCHoklch(34.99% 0.184 279.1)
XYZxyz(7.0916, 3.5686, 29.1633)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A96 #80961A
analogous
#1A4296 #301A96 #6E1A96
triadic
#301A96 #96301A #1A9630
tetradic
#301A96 #961A42 #80961A #1A966E
square
#301A96 #961A42 #80961A #1A966E
split-complementary
#301A96 #966E1A #42961A
monochromatic
#0F082E #1F1162 #301A96 #4123CA #654BE0

Accessibility & contrast

On white

12.25
#301A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#301A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A96
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A96#FFFFFF#000000##FFFFFF
##301A961.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301a96;
/* rgb */ color: rgb(48, 26, 150);
/* oklch */ color: oklch(35.0% 0.184 279.1);
Tailwind
colors: {
  custom: {
    50: '#785bb6',
    500: '#301a96',
    950: '#000000',
  },
}
SCSS
$custom: #301a96;
$custom-light: #785bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#301a96",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 250.645,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34987,
    "c": 0.18446,
    "h": 279.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#301A96
secondary
#ACC24A
accent
#ED3BCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301A96

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

Preview Lab → · Contrast checker → · Palette generator →

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