#301684#301684

#301684 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.167 H 282.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#301684
RGBrgb(48, 22, 132)
HSLhsl(254, 71%, 30%)
HSVhsv(254, 83%, 52%)
CMYKcmyk(63.6%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.51, 42.32, -56.28)
CIE-LCHlch(19.51, 70.42, 306.94°)
OKLaboklab(32.53% 0.0371 -0.1623)
OKLCHoklch(32.53% 0.167 282.9)
XYZxyz(5.6694, 2.8677, 22.0801)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301684 #6A8416
analogous
#163384 #301684 #671684
triadic
#301684 #843016 #168430
tetradic
#301684 #841633 #6A8416 #168467
square
#301684 #841633 #6A8416 #168467
split-complementary
#301684 #846716 #338416
monochromatic
#0A051B #1D0D50 #301684 #431FB8 #5E37DE

Accessibility & contrast

On white

13.35
#301684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301684
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301684#FFFFFF#000000##FFFFFF
##3016841.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301684;
/* rgb */ color: rgb(48, 22, 132);
/* oklch */ color: oklch(32.5% 0.167 282.9);
Tailwind
colors: {
  custom: {
    50: '#7558a9',
    500: '#301684',
    950: '#000000',
  },
}
SCSS
$custom: #301684;
$custom-light: #7558a9;
$custom-dark: #000000;
JSON
{
  "hex": "#301684",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 254.182,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32528,
    "c": 0.16651,
    "h": 282.9
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#301684
secondary
#9BB83D
accent
#EE3AC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301684

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

Preview Lab → · Contrast checker → · Palette generator →

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