#301583#301583

#301583 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.166 H 283.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#301583
RGBrgb(48, 21, 131)
HSLhsl(255, 72%, 30%)
HSVhsv(255, 84%, 51%)
CMYKcmyk(63.4%, 84%, 0%, 48.6%)
CIE-LABlab(19.24, 42.47, -56.10)
CIE-LCHlch(19.24, 70.36, 307.13°)
OKLaboklab(32.31% 0.038 -0.1618)
OKLCHoklch(32.31% 0.166 283.2)
XYZxyz(5.5826, 2.8030, 21.7152)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301583 #688315
analogous
#153183 #301583 #671583
triadic
#301583 #833015 #158330
tetradic
#301583 #831531 #688315 #158367
square
#301583 #831531 #688315 #158367
split-complementary
#301583 #836715 #318315
monochromatic
#0A041A #1D0D4E #301583 #431DB8 #5E34DE

Accessibility & contrast

On white

13.46
#301583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301583
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301583#FFFFFF#000000##FFFFFF
##3015831.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301583;
/* rgb */ color: rgb(48, 21, 131);
/* oklch */ color: oklch(32.3% 0.166 283.2);
Tailwind
colors: {
  custom: {
    50: '#7457a8',
    500: '#301583',
    950: '#000000',
  },
}
SCSS
$custom: #301583;
$custom-light: #7457a8;
$custom-dark: #000000;
JSON
{
  "hex": "#301583",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 254.727,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32309,
    "c": 0.16617,
    "h": 283.2
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#301583
secondary
#99B83C
accent
#EF39C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301583

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

Preview Lab → · Contrast checker → · Palette generator →

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