#301E79#301E79

#301E79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.145 H 283.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#301E79
RGBrgb(48, 30, 121)
HSLhsl(252, 60%, 30%)
HSVhsv(252, 75%, 47%)
CMYKcmyk(60.3%, 75.2%, 0%, 52.5%)
CIE-LABlab(19.79, 34.73, -48.83)
CIE-LCHlch(19.79, 59.92, 305.42°)
OKLaboklab(32.38% 0.0347 -0.1406)
OKLCHoklch(32.38% 0.145 283.9)
XYZxyz(5.1333, 2.9371, 18.3819)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E79 #67791E
analogous
#1E3A79 #301E79 #5E1E79
triadic
#301E79 #79301E #1E7930
tetradic
#301E79 #791E3A #67791E #1E795E
square
#301E79 #791E3A #67791E #1E795E
split-complementary
#301E79 #795E1E #3A791E
monochromatic
#0A0619 #1D1248 #301E79 #432AAA #5E41D0

Accessibility & contrast

On white

13.23
#301E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E79
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E79#FFFFFF#000000##FFFFFF
##301E791.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#063749
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301e79;
/* rgb */ color: rgb(48, 30, 121);
/* oklch */ color: oklch(32.4% 0.145 283.9);
Tailwind
colors: {
  custom: {
    50: '#725ca1',
    500: '#301e79',
    950: '#000000',
  },
}
SCSS
$custom: #301e79;
$custom-light: #725ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#301e79",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 251.868,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32376,
    "c": 0.14486,
    "h": 283.9
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#301E79
secondary
#98AD46
accent
#E344C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E79

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

Preview Lab → · Contrast checker → · Palette generator →

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