#301D66#301D66

#301D66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.4% C 0.121 H 289.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#301D66
RGBrgb(48, 29, 102)
HSLhsl(256, 56%, 26%)
HSVhsv(256, 72%, 40%)
CMYKcmyk(52.9%, 71.6%, 0%, 60%)
CIE-LABlab(17.77, 29.19, -39.84)
CIE-LCHlch(17.77, 49.38, 306.23°)
OKLaboklab(30.37% 0.0395 -0.1143)
OKLCHoklch(30.37% 0.121 289.1)
XYZxyz(4.0559, 2.4662, 12.8301)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D66 #53661D
analogous
#1D2F66 #301D66 #541D66
triadic
#301D66 #66301D #1D6630
tetradic
#301D66 #661D2F #53661D #1D6654
square
#301D66 #661D2F #53661D #1D6654
split-complementary
#301D66 #66541D #2F661D
monochromatic
#0B0718 #1A0F36 #301D66 #462B96 #5D38C5

Accessibility & contrast

On white

14.06
#301D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D66
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D66#FFFFFF#000000##FFFFFF
##301D661.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#1D2F3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301d66;
/* rgb */ color: rgb(48, 29, 102);
/* oklch */ color: oklch(30.4% 0.121 289.1);
Tailwind
colors: {
  custom: {
    50: '#6e5a92',
    500: '#301d66',
    950: '#000000',
  },
}
SCSS
$custom: #301d66;
$custom-light: #6e5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#301d66",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 102
  },
  "hsl": {
    "h": 255.616,
    "s": 55.725,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30374,
    "c": 0.12091,
    "h": 289.1
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#301D66
secondary
#849B44
accent
#DF49B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301D66

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

Preview Lab → · Contrast checker → · Palette generator →

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