#301878#301878

#301878 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.150 H 285.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#301878
RGBrgb(48, 24, 120)
HSLhsl(255, 67%, 28%)
HSVhsv(255, 80%, 47%)
CMYKcmyk(60%, 80%, 0%, 52.9%)
CIE-LABlab(18.53, 37.70, -50.26)
CIE-LCHlch(18.53, 62.83, 306.87°)
OKLaboklab(31.46% 0.0397 -0.1448)
OKLCHoklch(31.46% 0.15 285.3)
XYZxyz(4.9347, 2.6374, 18.0147)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301878 #607818
analogous
#183078 #301878 #601878
triadic
#301878 #783018 #187830
tetradic
#301878 #781830 #607818 #187860
square
#301878 #781830 #607818 #187860
split-complementary
#301878 #786018 #307818
monochromatic
#0A051A #1C0E45 #301878 #4422AB #5D34D6

Accessibility & contrast

On white

13.75
#301878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301878
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301878#FFFFFF#000000##FFFFFF
##3018781.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#093447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301878;
/* rgb */ color: rgb(48, 24, 120);
/* oklch */ color: oklch(31.5% 0.150 285.3);
Tailwind
colors: {
  custom: {
    50: '#7258a0',
    500: '#301878',
    950: '#000000',
  },
}
SCSS
$custom: #301878;
$custom-light: #7258a0;
$custom-dark: #000000;
JSON
{
  "hex": "#301878",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31457,
    "c": 0.15012,
    "h": 285.3
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#301878
secondary
#91AD3F
accent
#EA3EBF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301878

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

Preview Lab → · Contrast checker → · Palette generator →

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