#301E84#301E84

#301E84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.159 H 281.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#301E84
RGBrgb(48, 30, 132)
HSLhsl(251, 63%, 32%)
HSVhsv(251, 77%, 52%)
CMYKcmyk(63.6%, 77.3%, 0%, 48.2%)
CIE-LABlab(20.91, 38.27, -53.96)
CIE-LCHlch(20.91, 66.15, 305.34°)
OKLaboklab(33.51% 0.032 -0.1556)
OKLCHoklch(33.51% 0.159 281.6)
XYZxyz(5.8467, 3.2224, 22.1392)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E84 #72841E
analogous
#1E3F84 #301E84 #631E84
triadic
#301E84 #84301E #1E8430
tetradic
#301E84 #841E3F #72841E #1E8463
square
#301E84 #841E3F #72841E #1E8463
split-complementary
#301E84 #84631E #3F841E
monochromatic
#0C0720 #1E1352 #301E84 #4229B6 #6047D5

Accessibility & contrast

On white

12.77
#301E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#301E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E84
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E84#FFFFFF#000000##FFFFFF
##301E841.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301e84;
/* rgb */ color: rgb(48, 30, 132);
/* oklch */ color: oklch(33.5% 0.159 281.6);
Tailwind
colors: {
  custom: {
    50: '#745ca9',
    500: '#301e84',
    950: '#000000',
  },
}
SCSS
$custom: #301e84;
$custom-light: #745ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#301e84",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 250.588,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.1589,
    "h": 281.6
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#301E84
secondary
#A3B747
accent
#E642C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301E84

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

Preview Lab → · Contrast checker → · Palette generator →

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