#301D75#301D75

#301D75 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.141 H 285.0°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#301D75
RGBrgb(48, 29, 117)
HSLhsl(253, 60%, 29%)
HSVhsv(253, 75%, 46%)
CMYKcmyk(59%, 75.2%, 0%, 54.1%)
CIE-LABlab(19.19, 34.02, -47.25)
CIE-LCHlch(19.19, 58.22, 305.75°)
OKLaboklab(31.83% 0.0365 -0.136)
OKLCHoklch(31.83% 0.141 285)
XYZxyz(4.8682, 2.7912, 17.1084)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D75 #62751D
analogous
#1D3675 #301D75 #5C1D75
triadic
#301D75 #75301D #1D7530
tetradic
#301D75 #751D36 #62751D #1D755C
square
#301D75 #751D36 #62751D #1D755C
split-complementary
#301D75 #755C1D #36751D
monochromatic
#0A0619 #1C1144 #301D75 #4429A6 #5D3DCF

Accessibility & contrast

On white

13.48
#301D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D75
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D75#FFFFFF#000000##FFFFFF
##301D751.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#0E3547
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301d75;
/* rgb */ color: rgb(48, 29, 117);
/* oklch */ color: oklch(31.8% 0.141 285.0);
Tailwind
colors: {
  custom: {
    50: '#715b9e',
    500: '#301d75',
    950: '#000000',
  },
}
SCSS
$custom: #301d75;
$custom-light: #715b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#301d75",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 117
  },
  "hsl": {
    "h": 252.955,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31827,
    "c": 0.14083,
    "h": 285
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#301D75
secondary
#93A945
accent
#E344C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301D75

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

Preview Lab → · Contrast checker → · Palette generator →

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