#301D7D#301D7D

#301D7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 283.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#301D7D
RGBrgb(48, 29, 125)
HSLhsl(252, 62%, 30%)
HSVhsv(252, 77%, 49%)
CMYKcmyk(61.6%, 76.8%, 0%, 51%)
CIE-LABlab(19.99, 36.58, -51.05)
CIE-LCHlch(19.99, 62.80, 305.63°)
OKLaboklab(32.64% 0.0346 -0.1471)
OKLCHoklch(32.64% 0.151 283.2)
XYZxyz(5.3588, 2.9874, 19.6923)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D7D #6A7D1D
analogous
#1D3A7D #301D7D #601D7D
triadic
#301D7D #7D301D #1D7D30
tetradic
#301D7D #7D1D3A #6A7D1D #1D7D60
square
#301D7D #7D1D3A #6A7D1D #1D7D60
split-complementary
#301D7D #7D601D #3A7D1D
monochromatic
#0A061A #1D114B #301D7D #4329AF #5E41D3

Accessibility & contrast

On white

13.14
#301D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D7D
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D7D#FFFFFF#000000##FFFFFF
##301D7D1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301d7d;
/* rgb */ color: rgb(48, 29, 125);
/* oklch */ color: oklch(32.6% 0.151 283.2);
Tailwind
colors: {
  custom: {
    50: '#735ba4',
    500: '#301d7d',
    950: '#000000',
  },
}
SCSS
$custom: #301d7d;
$custom-light: #735ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#301d7d",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 251.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32643,
    "c": 0.15111,
    "h": 283.2
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#301D7D
secondary
#9BB145
accent
#E542C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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