#301783#301783

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

Color values

HEX#301783
RGBrgb(48, 23, 131)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(63.4%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.55, 41.55, -55.57)
CIE-LCHlch(19.55, 69.39, 306.78°)
OKLaboklab(32.53% 0.0368 -0.1603)
OKLCHoklch(32.53% 0.164 282.9)
XYZxyz(5.6208, 2.8795, 21.7279)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301783 #6A8317
analogous
#173483 #301783 #661783
triadic
#301783 #833017 #178330
tetradic
#301783 #831734 #6A8317 #178366
square
#301783 #831734 #6A8317 #178366
split-complementary
#301783 #836617 #348317
monochromatic
#0A051B #1D0E4F #301783 #4320B7 #5E38DC

Accessibility & contrast

On white

13.32
#301783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301783
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301783#FFFFFF#000000##FFFFFF
##3017831.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301783;
/* rgb */ color: rgb(48, 23, 131);
/* oklch */ color: oklch(32.5% 0.164 282.9);
Tailwind
colors: {
  custom: {
    50: '#7458a8',
    500: '#301783',
    950: '#000000',
  },
}
SCSS
$custom: #301783;
$custom-light: #7458a8;
$custom-dark: #000000;
JSON
{
  "hex": "#301783",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 253.889,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32528,
    "c": 0.16445,
    "h": 282.9
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#301783
secondary
#9BB73F
accent
#ED3BC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301783

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

Preview Lab → · Contrast checker → · Palette generator →

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