#301884#301884

#301884 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.165 H 282.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#301884
RGBrgb(48, 24, 132)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 82%, 52%)
CMYKcmyk(63.6%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.83, 41.37, -55.75)
CIE-LCHlch(19.83, 69.42, 306.58°)
OKLaboklab(32.75% 0.0359 -0.1608)
OKLCHoklch(32.75% 0.165 282.6)
XYZxyz(5.7091, 2.9472, 22.0933)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301884 #6C8418
analogous
#183684 #301884 #661884
triadic
#301884 #843018 #188430
tetradic
#301884 #841836 #6C8418 #188466
square
#301884 #841836 #6C8418 #188466
split-complementary
#301884 #846618 #368418
monochromatic
#0A051C #1D0F50 #301884 #4321B8 #5F3BDB

Accessibility & contrast

On white

13.21
#301884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301884
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301884#FFFFFF#000000##FFFFFF
##3018841.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301884;
/* rgb */ color: rgb(48, 24, 132);
/* oklch */ color: oklch(32.8% 0.165 282.6);
Tailwind
colors: {
  custom: {
    50: '#7459a9',
    500: '#301884',
    950: '#000000',
  },
}
SCSS
$custom: #301884;
$custom-light: #7459a9;
$custom-dark: #000000;
JSON
{
  "hex": "#301884",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 253.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32753,
    "c": 0.16475,
    "h": 282.6
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#301884
secondary
#9DB840
accent
#EC3CC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301884

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

Preview Lab → · Contrast checker → · Palette generator →

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