#301C82#301C82

#301C82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.158 H 282.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#301C82
RGBrgb(48, 28, 130)
HSLhsl(252, 65%, 31%)
HSVhsv(252, 78%, 51%)
CMYKcmyk(63.1%, 78.5%, 0%, 49%)
CIE-LABlab(20.32, 38.71, -53.67)
CIE-LCHlch(20.32, 66.18, 305.80°)
OKLaboklab(33.03% 0.0339 -0.1548)
OKLCHoklch(33.03% 0.158 282.4)
XYZxyz(5.6622, 3.0702, 21.4090)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C82 #6E821C
analogous
#1C3B82 #301C82 #631C82
triadic
#301C82 #82301C #1C8230
tetradic
#301C82 #821C3B #6E821C #1C8263
square
#301C82 #821C3B #6E821C #1C8263
split-complementary
#301C82 #82631C #3B821C
monochromatic
#0B061D #1D1150 #301C82 #4327B4 #5F42D6

Accessibility & contrast

On white

13.01
#301C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C82
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C82#FFFFFF#000000##FFFFFF
##301C821.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301c82;
/* rgb */ color: rgb(48, 28, 130);
/* oklch */ color: oklch(33.0% 0.158 282.4);
Tailwind
colors: {
  custom: {
    50: '#745ba7',
    500: '#301c82',
    950: '#000000',
  },
}
SCSS
$custom: #301c82;
$custom-light: #745ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#301c82",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 251.765,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33031,
    "c": 0.15846,
    "h": 282.4
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#301C82
secondary
#9FB544
accent
#E840C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C82

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

Preview Lab → · Contrast checker → · Palette generator →

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