#301978#301978

#301978 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.149 H 285.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#301978
RGBrgb(48, 25, 120)
HSLhsl(255, 66%, 28%)
HSVhsv(255, 79%, 47%)
CMYKcmyk(60%, 79.2%, 0%, 52.9%)
CIE-LABlab(18.71, 37.17, -49.96)
CIE-LCHlch(18.71, 62.28, 306.65°)
OKLaboklab(31.58% 0.039 -0.1439)
OKLCHoklch(31.58% 0.149 285.1)
XYZxyz(4.9557, 2.6794, 18.0217)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301978 #617819
analogous
#193178 #301978 #5F1978
triadic
#301978 #783019 #197830
tetradic
#301978 #781931 #617819 #19785F
square
#301978 #781931 #617819 #19785F
split-complementary
#301978 #785F19 #317819
monochromatic
#0A0519 #1C0E45 #301978 #4424AB #5D36D5

Accessibility & contrast

On white

13.67
#301978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301978
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301978#FFFFFF#000000##FFFFFF
##3019781.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#093448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301978;
/* rgb */ color: rgb(48, 25, 120);
/* oklch */ color: oklch(31.6% 0.149 285.1);
Tailwind
colors: {
  custom: {
    50: '#7259a0',
    500: '#301978',
    950: '#000000',
  },
}
SCSS
$custom: #301978;
$custom-light: #7259a0;
$custom-dark: #000000;
JSON
{
  "hex": "#301978",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 254.526,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.1491,
    "h": 285.1
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#301978
secondary
#92AD40
accent
#E83FC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #301978

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

Preview Lab → · Contrast checker → · Palette generator →

#301978 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva