#301786#301786

#301786 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.168 H 282.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#301786
RGBrgb(48, 23, 134)
HSLhsl(254, 71%, 31%)
HSVhsv(254, 83%, 53%)
CMYKcmyk(64.2%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.89, 42.45, -56.91)
CIE-LCHlch(19.89, 71.00, 306.72°)
OKLaboklab(32.86% 0.0358 -0.1642)
OKLCHoklch(32.86% 0.168 282.3)
XYZxyz(5.8271, 2.9620, 22.8143)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301786 #6D8617
analogous
#173586 #301786 #671786
triadic
#301786 #863017 #178630
tetradic
#301786 #861735 #6D8617 #178667
square
#301786 #861735 #6D8617 #178667
split-complementary
#301786 #866717 #358617
monochromatic
#0B051E #1D0E52 #301786 #4320BA #5F3ADD

Accessibility & contrast

On white

13.19
#301786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301786
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301786#FFFFFF#000000##FFFFFF
##3017861.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301786;
/* rgb */ color: rgb(48, 23, 134);
/* oklch */ color: oklch(32.9% 0.168 282.3);
Tailwind
colors: {
  custom: {
    50: '#7559aa',
    500: '#301786',
    950: '#000000',
  },
}
SCSS
$custom: #301786;
$custom-light: #7559aa;
$custom-dark: #000000;
JSON
{
  "hex": "#301786",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 253.514,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.16803,
    "h": 282.3
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#301786
secondary
#9EBA3F
accent
#ED3AC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301786

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

Preview Lab → · Contrast checker → · Palette generator →

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