#301785#301785

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

Color values

HEX#301785
RGBrgb(48, 23, 133)
HSLhsl(254, 71%, 31%)
HSVhsv(254, 83%, 52%)
CMYKcmyk(63.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.78, 42.15, -56.46)
CIE-LCHlch(19.78, 70.46, 306.74°)
OKLaboklab(32.75% 0.0362 -0.1629)
OKLCHoklch(32.75% 0.167 282.5)
XYZxyz(5.7576, 2.9342, 22.4487)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301785 #6C8517
analogous
#173585 #301785 #671785
triadic
#301785 #853017 #178530
tetradic
#301785 #851735 #6C8517 #178567
square
#301785 #851735 #6C8517 #178567
split-complementary
#301785 #856717 #358517
monochromatic
#0A051D #1D0E51 #301785 #4320B9 #5F3ADD

Accessibility & contrast

On white

13.23
#301785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301785
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301785#FFFFFF#000000##FFFFFF
##3017851.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301785;
/* rgb */ color: rgb(48, 23, 133);
/* oklch */ color: oklch(32.8% 0.167 282.5);
Tailwind
colors: {
  custom: {
    50: '#7559aa',
    500: '#301785',
    950: '#000000',
  },
}
SCSS
$custom: #301785;
$custom-light: #7559aa;
$custom-dark: #000000;
JSON
{
  "hex": "#301785",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 253.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3275,
    "c": 0.16684,
    "h": 282.5
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#301785
secondary
#9DB93F
accent
#ED3BC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301785

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

Preview Lab → · Contrast checker → · Palette generator →

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