#301D7F#301D7F

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

Color values

HEX#301D7F
RGBrgb(48, 29, 127)
HSLhsl(252, 63%, 31%)
HSVhsv(252, 77%, 50%)
CMYKcmyk(62.2%, 77.2%, 0%, 50.2%)
CIE-LABlab(20.20, 37.22, -51.98)
CIE-LCHlch(20.20, 63.93, 305.61°)
OKLaboklab(32.85% 0.034 -0.1498)
OKLCHoklch(32.85% 0.154 282.8)
XYZxyz(5.4879, 3.0390, 20.3720)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D7F #6C7F1D
analogous
#1D3B7F #301D7F #611D7F
triadic
#301D7F #7F301D #1D7F30
tetradic
#301D7F #7F1D3B #6C7F1D #1D7F61
square
#301D7F #7F1D3B #6C7F1D #1D7F61
split-complementary
#301D7F #7F611D #3B7F1D
monochromatic
#0A061B #1D124D #301D7F #4328B1 #5F42D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301D7F#FFFFFF#000000##FFFFFF
##301D7F1.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)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301d7f;
/* rgb */ color: rgb(48, 29, 127);
/* oklch */ color: oklch(32.9% 0.154 282.8);
Tailwind
colors: {
  custom: {
    50: '#735ca5',
    500: '#301d7f',
    950: '#000000',
  },
}
SCSS
$custom: #301d7f;
$custom-light: #735ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#301d7f",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 251.633,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.15366,
    "h": 282.8
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#301D7F
secondary
#9DB245
accent
#E642C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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