#301C7C#301C7C

#301C7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.151 H 283.6°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#301C7C
RGBrgb(48, 28, 124)
HSLhsl(253, 63%, 30%)
HSVhsv(253, 77%, 49%)
CMYKcmyk(61.3%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.70, 36.81, -50.90)
CIE-LCHlch(19.70, 62.82, 305.88°)
OKLaboklab(32.4% 0.0356 -0.1467)
OKLCHoklch(32.4% 0.151 283.6)
XYZxyz(5.2711, 2.9138, 19.3495)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C7C #687C1C
analogous
#1C387C #301C7C #601C7C
triadic
#301C7C #7C301C #1C7C30
tetradic
#301C7C #7C1C38 #687C1C #1C7C60
square
#301C7C #7C1C38 #687C1C #1C7C60
split-complementary
#301C7C #7C601C #387C1C
monochromatic
#0A0619 #1D114A #301C7C #4327AE #5E3FD4

Accessibility & contrast

On white

13.27
#301C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#301C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C7C
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C7C#FFFFFF#000000##FFFFFF
##301C7C1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#01374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301c7c;
/* rgb */ color: rgb(48, 28, 124);
/* oklch */ color: oklch(32.4% 0.151 283.6);
Tailwind
colors: {
  custom: {
    50: '#725ba3',
    500: '#301c7c',
    950: '#000000',
  },
}
SCSS
$custom: #301c7c;
$custom-light: #725ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#301c7c",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 252.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32401,
    "c": 0.15093,
    "h": 283.6
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#301C7C
secondary
#99B044
accent
#E642C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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