#301D83#301D83

#301D83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.159 H 282.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#301D83
RGBrgb(48, 29, 131)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(63.4%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.62, 38.49, -53.82)
CIE-LCHlch(20.62, 66.17, 305.57°)
OKLaboklab(33.27% 0.033 -0.1552)
OKLCHoklch(33.27% 0.159 282)
XYZxyz(5.7537, 3.1454, 21.7723)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D83 #70831D
analogous
#1D3D83 #301D83 #631D83
triadic
#301D83 #83301D #1D8330
tetradic
#301D83 #831D3D #70831D #1D8363
square
#301D83 #831D3D #70831D #1D8363
split-complementary
#301D83 #83631D #3D831D
monochromatic
#0B071F #1E1251 #301D83 #4228B5 #6045D6

Accessibility & contrast

On white

12.89
#301D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D83
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D83#FFFFFF#000000##FFFFFF
##301D831.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #301d83;
/* rgb */ color: rgb(48, 29, 131);
/* oklch */ color: oklch(33.3% 0.159 282.0);
Tailwind
colors: {
  custom: {
    50: '#745ca8',
    500: '#301d83',
    950: '#000000',
  },
}
SCSS
$custom: #301d83;
$custom-light: #745ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#301d83",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 251.176,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3327,
    "c": 0.15868,
    "h": 282
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#301D83
secondary
#A1B646
accent
#E741C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D83

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

Preview Lab → · Contrast checker → · Palette generator →

#301D83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva