#301C75#301C75

#301C75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.142 H 285.3°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#301C75
RGBrgb(48, 28, 117)
HSLhsl(253, 61%, 28%)
HSVhsv(253, 76%, 46%)
CMYKcmyk(59%, 76.1%, 0%, 54.1%)
CIE-LABlab(18.98, 34.59, -47.59)
CIE-LCHlch(18.98, 58.83, 306.01°)
OKLaboklab(31.68% 0.0374 -0.137)
OKLCHoklch(31.68% 0.142 285.3)
XYZxyz(4.8441, 2.7430, 17.1004)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C75 #61751C
analogous
#1C3475 #301C75 #5C1C75
triadic
#301C75 #75301C #1C7530
tetradic
#301C75 #751C34 #61751C #1C755C
square
#301C75 #751C34 #61751C #1C755C
split-complementary
#301C75 #755C1C #34751C
monochromatic
#0A0619 #1C1044 #301C75 #4428A6 #5D3BD0

Accessibility & contrast

On white

13.56
#301C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C75
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C75#FFFFFF#000000##FFFFFF
##301C751.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#0E3447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301c75;
/* rgb */ color: rgb(48, 28, 117);
/* oklch */ color: oklch(31.7% 0.142 285.3);
Tailwind
colors: {
  custom: {
    50: '#715a9e',
    500: '#301c75',
    950: '#000000',
  },
}
SCSS
$custom: #301c75;
$custom-light: #715a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301c75",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 253.483,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31683,
    "c": 0.142,
    "h": 285.3
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#301C75
secondary
#92A944
accent
#E443C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C75

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

Preview Lab → · Contrast checker → · Palette generator →

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