#301D79#301D79

#301D79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.146 H 284.1°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#301D79
RGBrgb(48, 29, 121)
HSLhsl(252, 61%, 29%)
HSVhsv(252, 76%, 47%)
CMYKcmyk(60.3%, 76%, 0%, 52.5%)
CIE-LABlab(19.59, 35.30, -49.16)
CIE-LCHlch(19.59, 60.52, 305.68°)
OKLaboklab(32.23% 0.0356 -0.1416)
OKLCHoklch(32.23% 0.146 284.1)
XYZxyz(5.1084, 2.8873, 18.3736)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D79 #66791D
analogous
#1D3879 #301D79 #5E1D79
triadic
#301D79 #79301D #1D7930
tetradic
#301D79 #791D38 #66791D #1D795E
square
#301D79 #791D38 #66791D #1D795E
split-complementary
#301D79 #795E1D #38791D
monochromatic
#0A0619 #1C1148 #301D79 #4429AA #5D3FD1

Accessibility & contrast

On white

13.31
#301D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D79
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D79#FFFFFF#000000##FFFFFF
##301D791.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#073649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301d79;
/* rgb */ color: rgb(48, 29, 121);
/* oklch */ color: oklch(32.2% 0.146 284.1);
Tailwind
colors: {
  custom: {
    50: '#725ba1',
    500: '#301d79',
    950: '#000000',
  },
}
SCSS
$custom: #301d79;
$custom-light: #725ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#301d79",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 252.391,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32232,
    "c": 0.146,
    "h": 284.1
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#301D79
secondary
#97AD45
accent
#E443C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D79

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

Preview Lab → · Contrast checker → · Palette generator →

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