#301D82#301D82

#301D82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.157 H 282.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#301D82
RGBrgb(48, 29, 130)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(63.1%, 77.7%, 0%, 49%)
CIE-LABlab(20.51, 38.17, -53.36)
CIE-LCHlch(20.51, 65.61, 305.58°)
OKLaboklab(33.16% 0.0332 -0.1539)
OKLCHoklch(33.16% 0.157 282.2)
XYZxyz(5.6863, 3.1184, 21.4170)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D82 #6F821D
analogous
#1D3C82 #301D82 #621D82
triadic
#301D82 #82301D #1D8230
tetradic
#301D82 #821D3C #6F821D #1D8262
square
#301D82 #821D3C #6F821D #1D8262
split-complementary
#301D82 #82621D #3C821D
monochromatic
#0B071E #1E1250 #301D82 #4228B4 #5F44D5

Accessibility & contrast

On white

12.93
#301D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D82
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D82#FFFFFF#000000##FFFFFF
##301D821.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301d82;
/* rgb */ color: rgb(48, 29, 130);
/* oklch */ color: oklch(33.2% 0.157 282.2);
Tailwind
colors: {
  custom: {
    50: '#745ca7',
    500: '#301d82',
    950: '#000000',
  },
}
SCSS
$custom: #301d82;
$custom-light: #745ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#301d82",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 251.287,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33164,
    "c": 0.15743,
    "h": 282.2
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#301D82
secondary
#A0B546
accent
#E741C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301D82

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

Preview Lab → · Contrast checker → · Palette generator →

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