#301D68#301D68

#301D68 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.124 H 288.5°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#301D68
RGBrgb(48, 29, 104)
HSLhsl(255, 56%, 26%)
HSVhsv(255, 72%, 41%)
CMYKcmyk(53.8%, 72.1%, 0%, 59.2%)
CIE-LABlab(17.95, 29.83, -40.85)
CIE-LCHlch(17.95, 50.58, 306.14°)
OKLaboklab(30.56% 0.0392 -0.1172)
OKLCHoklch(30.56% 0.124 288.5)
XYZxyz(4.1563, 2.5064, 13.3588)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D68 #55681D
analogous
#1D2F68 #301D68 #551D68
triadic
#301D68 #68301D #1D6830
tetradic
#301D68 #681D2F #55681D #1D6855
square
#301D68 #681D2F #55681D #1D6855
split-complementary
#301D68 #68551D #2F681D
monochromatic
#0B0718 #1A1038 #301D68 #462A98 #5C38C7

Accessibility & contrast

On white

13.99
#301D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D68
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D68#FFFFFF#000000##FFFFFF
##301D681.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002A67
Tritanopia (blue-blind)
#1C3040
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301d68;
/* rgb */ color: rgb(48, 29, 104);
/* oklch */ color: oklch(30.6% 0.124 288.5);
Tailwind
colors: {
  custom: {
    50: '#6f5a94',
    500: '#301d68',
    950: '#000000',
  },
}
SCSS
$custom: #301d68;
$custom-light: #6f5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#301d68",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 255.2,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30562,
    "c": 0.12362,
    "h": 288.5
  },
  "luminance": 0.02507
}

Semantic roles & 50–950 ramp

primary
#301D68
secondary
#869D44
accent
#E048B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301D68

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

Preview Lab → · Contrast checker → · Palette generator →

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