#301F78#301F78

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

Color values

HEX#301F78
RGBrgb(48, 31, 120)
HSLhsl(251, 59%, 30%)
HSVhsv(251, 74%, 47%)
CMYKcmyk(60%, 74.2%, 0%, 52.9%)
CIE-LABlab(19.90, 33.82, -48.01)
CIE-LCHlch(19.90, 58.73, 305.17°)
OKLaboklab(32.42% 0.0341 -0.1382)
OKLCHoklch(32.42% 0.142 283.9)
XYZxyz(5.0980, 2.9641, 18.0691)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F78 #67781F
analogous
#1F3A78 #301F78 #5D1F78
triadic
#301F78 #78301F #1F7830
tetradic
#301F78 #781F3A #67781F #1F785D
square
#301F78 #781F3A #67781F #1F785D
split-complementary
#301F78 #785D1F #3A781F
monochromatic
#0A0618 #1D1247 #301F78 #432CA9 #5E43CE

Accessibility & contrast

On white

13.18
#301F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F78
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F78#FFFFFF#000000##FFFFFF
##301F781.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#083749
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301f78;
/* rgb */ color: rgb(48, 31, 120);
/* oklch */ color: oklch(32.4% 0.142 283.9);
Tailwind
colors: {
  custom: {
    50: '#715ca0',
    500: '#301f78',
    950: '#000000',
  },
}
SCSS
$custom: #301f78;
$custom-light: #715ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#301f78",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 251.461,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32424,
    "c": 0.14239,
    "h": 283.9
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#301F78
secondary
#98AB47
accent
#E246C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #301F78

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

Preview Lab → · Contrast checker → · Palette generator →

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