#301686#301686

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

Color values

HEX#301686
RGBrgb(48, 22, 134)
HSLhsl(254, 72%, 31%)
HSVhsv(254, 84%, 53%)
CMYKcmyk(64.2%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.73, 42.91, -57.17)
CIE-LCHlch(19.73, 71.48, 306.89°)
OKLaboklab(32.75% 0.0364 -0.1649)
OKLCHoklch(32.75% 0.169 282.4)
XYZxyz(5.8076, 2.9230, 22.8078)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301686 #6C8616
analogous
#163486 #301686 #681686
triadic
#301686 #863016 #168630
tetradic
#301686 #861634 #6C8616 #168668
square
#301686 #861634 #6C8616 #168668
split-complementary
#301686 #866816 #348616
monochromatic
#0A051D #1D0D51 #301686 #431FBB #5F38DE

Accessibility & contrast

On white

13.25
#301686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301686
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301686#FFFFFF#000000##FFFFFF
##3016861.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301686;
/* rgb */ color: rgb(48, 22, 134);
/* oklch */ color: oklch(32.8% 0.169 282.4);
Tailwind
colors: {
  custom: {
    50: '#7558aa',
    500: '#301686',
    950: '#000000',
  },
}
SCSS
$custom: #301686;
$custom-light: #7558aa;
$custom-dark: #000000;
JSON
{
  "hex": "#301686",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 253.929,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.16888,
    "h": 282.4
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#301686
secondary
#9DBA3E
accent
#EF39C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301686

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

Preview Lab → · Contrast checker → · Palette generator →

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