#301E7D#301E7D

#301E7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.150 H 283.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#301E7D
RGBrgb(48, 30, 125)
HSLhsl(251, 61%, 30%)
HSVhsv(251, 76%, 49%)
CMYKcmyk(61.6%, 76%, 0%, 51%)
CIE-LABlab(20.19, 36.02, -50.72)
CIE-LCHlch(20.19, 62.21, 305.38°)
OKLaboklab(32.78% 0.0338 -0.1462)
OKLCHoklch(32.78% 0.15 283)
XYZxyz(5.3837, 3.0372, 19.7006)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E7D #6B7D1E
analogous
#1E3C7D #301E7D #5F1E7D
triadic
#301E7D #7D301E #1E7D30
tetradic
#301E7D #7D1E3C #6B7D1E #1E7D5F
square
#301E7D #7D1E3C #6B7D1E #1E7D5F
split-complementary
#301E7D #7D5F1E #3C7D1E
monochromatic
#0A061A #1D124C #301E7D #432AAE #5E43D2

Accessibility & contrast

On white

13.06
#301E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E7D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E7D#FFFFFF#000000##FFFFFF
##301E7D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301e7d;
/* rgb */ color: rgb(48, 30, 125);
/* oklch */ color: oklch(32.8% 0.150 283.0);
Tailwind
colors: {
  custom: {
    50: '#725ca4',
    500: '#301e7d',
    950: '#000000',
  },
}
SCSS
$custom: #301e7d;
$custom-light: #725ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#301e7d",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 251.368,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32783,
    "c": 0.15001,
    "h": 283
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#301E7D
secondary
#9CB046
accent
#E443C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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