#301B79#301B79

#301B79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.148 H 284.5°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#301B79
RGBrgb(48, 27, 121)
HSLhsl(253, 64%, 29%)
HSVhsv(253, 78%, 47%)
CMYKcmyk(60.3%, 77.7%, 0%, 52.5%)
CIE-LABlab(19.19, 36.41, -49.81)
CIE-LCHlch(19.19, 61.70, 306.17°)
OKLaboklab(31.95% 0.0371 -0.1435)
OKLCHoklch(31.95% 0.148 284.5)
XYZxyz(5.0610, 2.7924, 18.3578)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B79 #64791B
analogous
#1B3579 #301B79 #5F1B79
triadic
#301B79 #79301B #1B7930
tetradic
#301B79 #791B35 #64791B #1B795F
square
#301B79 #791B35 #64791B #1B795F
split-complementary
#301B79 #795F1B #35791B
monochromatic
#0A0619 #1C1047 #301B79 #4426AB #5D3BD3

Accessibility & contrast

On white

13.47
#301B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B79
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B79#FFFFFF#000000##FFFFFF
##301B791.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301b79;
/* rgb */ color: rgb(48, 27, 121);
/* oklch */ color: oklch(32.0% 0.148 284.5);
Tailwind
colors: {
  custom: {
    50: '#725aa1',
    500: '#301b79',
    950: '#000000',
  },
}
SCSS
$custom: #301b79;
$custom-light: #725aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#301b79",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 253.404,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31954,
    "c": 0.14822,
    "h": 284.5
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#301B79
secondary
#95AD43
accent
#E741C2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301B79

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

Preview Lab → · Contrast checker → · Palette generator →

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