#301041#301041

#301041 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.092 H 311.6°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#301041
RGBrgb(48, 16, 65)
HSLhsl(279, 60%, 16%)
HSVhsv(279, 75%, 25%)
CMYKcmyk(26.2%, 75.4%, 0%, 74.5%)
CIE-LABlab(11.83, 25.88, -24.31)
CIE-LCHlch(11.83, 35.51, 316.79°)
OKLaboklab(25.12% 0.0609 -0.0686)
OKLCHoklch(25.12% 0.092 311.6)
XYZxyz(2.3582, 1.3807, 5.1423)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301041 #214110
analogous
#171041 #301041 #411039
triadic
#301041 #413010 #104130
tetradic
#301041 #411710 #214110 #103941
square
#301041 #411710 #214110 #103941
split-complementary
#301041 #394110 #104117
monochromatic
#120619 #120619 #301041 #541C72 #7928A3

Accessibility & contrast

On white

16.46
#301041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#301041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301041
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301041#FFFFFF#000000##FFFFFF
##3010411.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#2E1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #301041;
/* rgb */ color: rgb(48, 16, 65);
/* oklch */ color: oklch(25.1% 0.092 311.6);
Tailwind
colors: {
  custom: {
    50: '#6a5176',
    500: '#301041',
    950: '#000000',
  },
}
SCSS
$custom: #301041;
$custom-light: #6a5176;
$custom-dark: #000000;
JSON
{
  "hex": "#301041",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 279.184,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2512,
    "c": 0.09169,
    "h": 311.6
  },
  "luminance": 0.01381
}

Semantic roles & 50–950 ramp

primary
#301041
secondary
#4B7B32
accent
#E4447B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301041

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

Preview Lab → · Contrast checker → · Palette generator →

#301041 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva