#301782#301782

#301782 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.163 H 283.2°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#301782
RGBrgb(48, 23, 130)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(63.1%, 82.3%, 0%, 49%)
CIE-LABlab(19.44, 41.24, -55.12)
CIE-LCHlch(19.44, 68.85, 306.80°)
OKLaboklab(32.42% 0.0372 -0.159)
OKLCHoklch(32.42% 0.163 283.2)
XYZxyz(5.5533, 2.8525, 21.3727)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301782 #698217
analogous
#173382 #301782 #661782
triadic
#301782 #823017 #178230
tetradic
#301782 #821733 #698217 #178266
square
#301782 #821733 #698217 #178266
split-complementary
#301782 #826617 #338217
monochromatic
#0A051A #1D0E4E #301782 #4320B6 #5E38DC

Accessibility & contrast

On white

13.37
#301782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301782
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301782#FFFFFF#000000##FFFFFF
##3017821.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301782;
/* rgb */ color: rgb(48, 23, 130);
/* oklch */ color: oklch(32.4% 0.163 283.2);
Tailwind
colors: {
  custom: {
    50: '#7458a7',
    500: '#301782',
    950: '#000000',
  },
}
SCSS
$custom: #301782;
$custom-light: #7458a7;
$custom-dark: #000000;
JSON
{
  "hex": "#301782",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 254.019,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.32418,
    "c": 0.16325,
    "h": 283.2
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#301782
secondary
#9AB63E
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301782

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

Preview Lab → · Contrast checker → · Palette generator →

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