#301778#301778

#301778 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.151 H 285.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#301778
RGBrgb(48, 23, 120)
HSLhsl(255, 68%, 28%)
HSVhsv(255, 81%, 47%)
CMYKcmyk(60%, 80.8%, 0%, 52.9%)
CIE-LABlab(18.35, 38.21, -50.56)
CIE-LCHlch(18.35, 63.37, 307.08°)
OKLaboklab(31.33% 0.0404 -0.1456)
OKLCHoklch(31.33% 0.151 285.5)
XYZxyz(4.9145, 2.5969, 18.0080)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301778 #5F7817
analogous
#172E78 #301778 #601778
triadic
#301778 #783017 #177830
tetradic
#301778 #78172E #5F7817 #177860
square
#301778 #78172E #5F7817 #177860
split-complementary
#301778 #786017 #2E7817
monochromatic
#0A051A #1B0D45 #301778 #4521AB #5D32D8

Accessibility & contrast

On white

13.82
#301778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301778
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301778#FFFFFF#000000##FFFFFF
##3017781.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#093347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301778;
/* rgb */ color: rgb(48, 23, 120);
/* oklch */ color: oklch(31.3% 0.151 285.5);
Tailwind
colors: {
  custom: {
    50: '#7258a0',
    500: '#301778',
    950: '#000000',
  },
}
SCSS
$custom: #301778;
$custom-light: #7258a0;
$custom-dark: #000000;
JSON
{
  "hex": "#301778",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 255.464,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31333,
    "c": 0.15113,
    "h": 285.5
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#301778
secondary
#90AD3E
accent
#EB3DBE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301778

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

Preview Lab → · Contrast checker → · Palette generator →

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