#301C71#301C71

#301C71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.137 H 286.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#301C71
RGBrgb(48, 28, 113)
HSLhsl(254, 60%, 28%)
HSVhsv(254, 75%, 44%)
CMYKcmyk(57.5%, 75.2%, 0%, 55.7%)
CIE-LABlab(18.59, 33.31, -45.66)
CIE-LCHlch(18.59, 56.52, 306.11°)
OKLaboklab(31.28% 0.0383 -0.1313)
OKLCHoklch(31.28% 0.137 286.3)
XYZxyz(4.6139, 2.6509, 15.8881)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C71 #5D711C
analogous
#1C3271 #301C71 #5B1C71
triadic
#301C71 #71301C #1C7130
tetradic
#301C71 #711C32 #5D711C #1C715B
square
#301C71 #711C32 #5D711C #1C715B
split-complementary
#301C71 #715B1C #32711C
monochromatic
#0A0619 #1B1040 #301C71 #4528A2 #5C39CE

Accessibility & contrast

On white

13.72
#301C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C71
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C71#FFFFFF#000000##FFFFFF
##301C711.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#133344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301c71;
/* rgb */ color: rgb(48, 28, 113);
/* oklch */ color: oklch(31.3% 0.137 286.3);
Tailwind
colors: {
  custom: {
    50: '#705a9b',
    500: '#301c71',
    950: '#000000',
  },
}
SCSS
$custom: #301c71;
$custom-light: #705a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#301c71",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 254.118,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31281,
    "c": 0.13682,
    "h": 286.3
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#301C71
secondary
#8EA643
accent
#E344BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C71

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

Preview Lab → · Contrast checker → · Palette generator →

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