#301A86#301A86

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

Color values

HEX#301A86
RGBrgb(48, 26, 134)
HSLhsl(252, 68%, 31%)
HSVhsv(252, 81%, 53%)
CMYKcmyk(64.2%, 80.6%, 0%, 47.5%)
CIE-LABlab(20.39, 41.00, -56.08)
CIE-LCHlch(20.39, 69.47, 306.17°)
OKLaboklab(33.21% 0.0341 -0.1618)
OKLCHoklch(33.21% 0.165 281.9)
XYZxyz(5.8900, 3.0880, 22.8353)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A86 #70861A
analogous
#1A3A86 #301A86 #661A86
triadic
#301A86 #86301A #1A8630
tetradic
#301A86 #861A3A #70861A #1A8666
square
#301A86 #861A3A #70861A #1A8666
split-complementary
#301A86 #86661A #3A861A
monochromatic
#0B061F #1E1053 #301A86 #4224B9 #6040DA

Accessibility & contrast

On white

12.98
#301A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A86
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A86#FFFFFF#000000##FFFFFF
##301A861.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301a86;
/* rgb */ color: rgb(48, 26, 134);
/* oklch */ color: oklch(33.2% 0.165 281.9);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#301a86',
    950: '#000000',
  },
}
SCSS
$custom: #301a86;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#301a86",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 252.222,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33209,
    "c": 0.16533,
    "h": 281.9
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#301A86
secondary
#A1B942
accent
#EA3DC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301A86

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

Preview Lab → · Contrast checker → · Palette generator →

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