#301F79#301F79

#301F79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.144 H 283.6°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#301F79
RGBrgb(48, 31, 121)
HSLhsl(251, 59%, 30%)
HSVhsv(251, 74%, 47%)
CMYKcmyk(60.3%, 74.4%, 0%, 52.5%)
CIE-LABlab(20.00, 34.15, -48.49)
CIE-LCHlch(20.00, 59.31, 305.16°)
OKLaboklab(32.52% 0.0339 -0.1396)
OKLCHoklch(32.52% 0.144 283.6)
XYZxyz(5.1590, 2.9885, 18.3904)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F79 #68791F
analogous
#1F3B79 #301F79 #5D1F79
triadic
#301F79 #79301F #1F7930
tetradic
#301F79 #791F3B #68791F #1F795D
square
#301F79 #791F3B #68791F #1F795D
split-complementary
#301F79 #795D1F #3B791F
monochromatic
#0A0618 #1D1348 #301F79 #432BAA #5E43CF

Accessibility & contrast

On white

13.14
#301F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F79
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F79#FFFFFF#000000##FFFFFF
##301F791.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301f79;
/* rgb */ color: rgb(48, 31, 121);
/* oklch */ color: oklch(32.5% 0.144 283.6);
Tailwind
colors: {
  custom: {
    50: '#725ca1',
    500: '#301f79',
    950: '#000000',
  },
}
SCSS
$custom: #301f79;
$custom-light: #725ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#301f79",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 251.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32523,
    "c": 0.1437,
    "h": 283.6
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#301F79
secondary
#99AC47
accent
#E245C5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #301F79

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

Preview Lab → · Contrast checker → · Palette generator →

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