#301E54#301E54

#301E54 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.094 H 295.3°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#301E54
RGBrgb(48, 30, 84)
HSLhsl(260, 47%, 22%)
HSVhsv(260, 64%, 33%)
CMYKcmyk(42.9%, 64.3%, 0%, 67.1%)
CIE-LABlab(16.49, 22.80, -29.92)
CIE-LCHlch(16.49, 37.62, 307.31°)
OKLaboklab(28.97% 0.0402 -0.0851)
OKLCHoklch(28.97% 0.094 295.3)
XYZxyz(3.2830, 2.1969, 8.6369)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E54 #42541E
analogous
#1E2754 #301E54 #4B1E54
triadic
#301E54 #54301E #1E5430
tetradic
#301E54 #541E27 #42541E #1E544B
square
#301E54 #541E27 #42541E #1E544B
split-complementary
#301E54 #544B1E #27541E
monochromatic
#0D0817 #160E27 #301E54 #4A2E81 #643EAE

Accessibility & contrast

On white

14.59
#301E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E54
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E54#FFFFFF#000000##FFFFFF
##301E541.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#062853
Tritanopia (blue-blind)
#272A35
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301e54;
/* rgb */ color: rgb(48, 30, 84);
/* oklch */ color: oklch(29.0% 0.094 295.3);
Tailwind
colors: {
  custom: {
    50: '#6b5a84',
    500: '#301e54',
    950: '#000000',
  },
}
SCSS
$custom: #301e54;
$custom-light: #6b5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#301e54",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 260,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28973,
    "c": 0.0941,
    "h": 295.3
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#301E54
secondary
#728945
accent
#D751AA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #301E54

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

Preview Lab → · Contrast checker → · Palette generator →

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