#301879#301879

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

Color values

HEX#301879
RGBrgb(48, 24, 121)
HSLhsl(255, 67%, 28%)
HSVhsv(255, 80%, 47%)
CMYKcmyk(60.3%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.64, 38.00, -50.73)
CIE-LCHlch(18.64, 63.39, 306.84°)
OKLaboklab(31.56% 0.0394 -0.1461)
OKLCHoklch(31.56% 0.151 285.1)
XYZxyz(4.9957, 2.6618, 18.3360)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301879 #617918
analogous
#183079 #301879 #601879
triadic
#301879 #793018 #187930
tetradic
#301879 #791830 #617918 #187960
square
#301879 #791830 #617918 #187960
split-complementary
#301879 #796018 #307918
monochromatic
#0A051A #1C0E46 #301879 #4422AC #5D35D7

Accessibility & contrast

On white

13.70
#301879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301879
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301879#FFFFFF#000000##FFFFFF
##3018791.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#073448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301879;
/* rgb */ color: rgb(48, 24, 121);
/* oklch */ color: oklch(31.6% 0.151 285.1);
Tailwind
colors: {
  custom: {
    50: '#7258a1',
    500: '#301879',
    950: '#000000',
  },
}
SCSS
$custom: #301879;
$custom-light: #7258a1;
$custom-dark: #000000;
JSON
{
  "hex": "#301879",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 254.845,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31563,
    "c": 0.15136,
    "h": 285.1
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#301879
secondary
#92AE3F
accent
#EA3EBF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301879

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

Preview Lab → · Contrast checker → · Palette generator →

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