#301D8E#301D8E

#301D8E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.172 H 280.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#301D8E
RGBrgb(48, 29, 142)
HSLhsl(250, 66%, 34%)
HSVhsv(250, 80%, 56%)
CMYKcmyk(66.2%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.80, 41.96, -58.77)
CIE-LCHlch(21.80, 72.21, 305.53°)
OKLaboklab(34.45% 0.0299 -0.1696)
OKLCHoklch(34.45% 0.172 280)
XYZxyz(6.5392, 3.4596, 25.9091)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D8E #7B8E1D
analogous
#1D438E #301D8E #681D8E
triadic
#301D8E #8E301D #1D8E30
tetradic
#301D8E #8E1D43 #7B8E1D #1D8E68
square
#301D8E #8E1D43 #7B8E1D #1D8E68
split-complementary
#301D8E #8E681D #438E1D
monochromatic
#0E0828 #1F135B #301D8E #4127C1 #634BDA

Accessibility & contrast

On white

12.41
#301D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D8E
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D8E#FFFFFF#000000##FFFFFF
##301D8E1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301d8e;
/* rgb */ color: rgb(48, 29, 142);
/* oklch */ color: oklch(34.4% 0.172 280.0);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#301d8e',
    950: '#000000',
  },
}
SCSS
$custom: #301d8e;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#301d8e",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 250.088,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.17227,
    "h": 280
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#301D8E
secondary
#A9BD4A
accent
#E93FCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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