#301E86#301E86

#301E86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.161 H 281.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#301E86
RGBrgb(48, 30, 134)
HSLhsl(250, 63%, 32%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(64.2%, 77.6%, 0%, 47.5%)
CIE-LABlab(21.12, 38.90, -54.88)
CIE-LCHlch(21.12, 67.27, 305.34°)
OKLaboklab(33.72% 0.0315 -0.1583)
OKLCHoklch(33.72% 0.161 281.3)
XYZxyz(5.9849, 3.2777, 22.8669)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E86 #74861E
analogous
#1E4086 #301E86 #641E86
triadic
#301E86 #86301E #1E8630
tetradic
#301E86 #861E40 #74861E #1E8664
square
#301E86 #861E40 #74861E #1E8664
split-complementary
#301E86 #86641E #40861E
monochromatic
#0C0822 #1E1354 #301E86 #4229B8 #6148D6

Accessibility & contrast

On white

12.68
#301E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E86
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E86#FFFFFF#000000##FFFFFF
##301E861.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301e86;
/* rgb */ color: rgb(48, 30, 134);
/* oklch */ color: oklch(33.7% 0.161 281.3);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#301e86',
    950: '#000000',
  },
}
SCSS
$custom: #301e86;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#301e86",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 250.385,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.16141,
    "h": 281.3
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#301E86
secondary
#A5B847
accent
#E641CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301E86

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

Preview Lab → · Contrast checker → · Palette generator →

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