#301E66#301E66

#301E66 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.120 H 288.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#301E66
RGBrgb(48, 30, 102)
HSLhsl(255, 55%, 26%)
HSVhsv(255, 71%, 40%)
CMYKcmyk(52.9%, 70.6%, 0%, 60%)
CIE-LABlab(17.99, 28.57, -39.47)
CIE-LCHlch(17.99, 48.72, 305.90°)
OKLaboklab(30.54% 0.0385 -0.1132)
OKLCHoklch(30.54% 0.12 288.8)
XYZxyz(4.0808, 2.5161, 12.8384)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E66 #54661E
analogous
#1E3066 #301E66 #541E66
triadic
#301E66 #66301E #1E6630
tetradic
#301E66 #661E30 #54661E #1E6654
square
#301E66 #661E30 #54661E #1E6654
split-complementary
#301E66 #66541E #30661E
monochromatic
#0B0718 #1A1037 #301E66 #462C95 #5D3AC5

Accessibility & contrast

On white

13.97
#301E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E66
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E66#FFFFFF#000000##FFFFFF
##301E661.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301e66;
/* rgb */ color: rgb(48, 30, 102);
/* oklch */ color: oklch(30.5% 0.120 288.8);
Tailwind
colors: {
  custom: {
    50: '#6e5b92',
    500: '#301e66',
    950: '#000000',
  },
}
SCSS
$custom: #301e66;
$custom-light: #6e5b92;
$custom-dark: #000000;
JSON
{
  "hex": "#301e66",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 102
  },
  "hsl": {
    "h": 255,
    "s": 54.545,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30537,
    "c": 0.11954,
    "h": 288.8
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#301E66
secondary
#859B45
accent
#DE4AB9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301E66

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

Preview Lab → · Contrast checker → · Palette generator →

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