#301784#301784

#301784 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.166 H 282.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#301784
RGBrgb(48, 23, 132)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 83%, 52%)
CMYKcmyk(63.6%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.67, 41.85, -56.02)
CIE-LCHlch(19.67, 69.93, 306.76°)
OKLaboklab(32.64% 0.0365 -0.1616)
OKLCHoklch(32.64% 0.166 282.7)
XYZxyz(5.6889, 2.9067, 22.0866)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301784 #6B8417
analogous
#173584 #301784 #661784
triadic
#301784 #843017 #178430
tetradic
#301784 #841735 #6B8417 #178466
square
#301784 #841735 #6B8417 #178466
split-complementary
#301784 #846617 #358417
monochromatic
#0A051C #1D0E50 #301784 #4320B8 #5E39DC

Accessibility & contrast

On white

13.28
#301784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301784
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301784#FFFFFF#000000##FFFFFF
##3017841.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301784;
/* rgb */ color: rgb(48, 23, 132);
/* oklch */ color: oklch(32.6% 0.166 282.7);
Tailwind
colors: {
  custom: {
    50: '#7559a9',
    500: '#301784',
    950: '#000000',
  },
}
SCSS
$custom: #301784;
$custom-light: #7559a9;
$custom-dark: #000000;
JSON
{
  "hex": "#301784",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 253.761,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32639,
    "c": 0.16564,
    "h": 282.7
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#301784
secondary
#9CB83F
accent
#ED3BC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301784

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

Preview Lab → · Contrast checker → · Palette generator →

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