#301042#301042

#301042 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.093 H 310.8°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#301042
RGBrgb(48, 16, 66)
HSLhsl(278, 61%, 16%)
HSVhsv(278, 76%, 26%)
CMYKcmyk(27.3%, 75.8%, 0%, 74.1%)
CIE-LABlab(11.91, 26.14, -24.89)
CIE-LCHlch(11.91, 36.10, 316.40°)
OKLaboklab(25.2% 0.0608 -0.0703)
OKLCHoklch(25.2% 0.093 310.8)
XYZxyz(2.3874, 1.3924, 5.2962)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301042 #224210
analogous
#171042 #301042 #42103B
triadic
#301042 #423010 #104230
tetradic
#301042 #421710 #224210 #103B42
square
#301042 #421710 #224210 #103B42
split-complementary
#301042 #3B4210 #104217
monochromatic
#120619 #120619 #301042 #541C73 #7828A5

Accessibility & contrast

On white

16.43
#301042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301042
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301042#FFFFFF#000000##FFFFFF
##3010421.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#0A2041
Tritanopia (blue-blind)
#2E1A27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #301042;
/* rgb */ color: rgb(48, 16, 66);
/* oklch */ color: oklch(25.2% 0.093 310.8);
Tailwind
colors: {
  custom: {
    50: '#6b5177',
    500: '#301042',
    950: '#000000',
  },
}
SCSS
$custom: #301042;
$custom-light: #6b5177;
$custom-dark: #000000;
JSON
{
  "hex": "#301042",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 278.4,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25201,
    "c": 0.09291,
    "h": 310.8
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#301042
secondary
#4D7C32
accent
#E4447D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301042

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

Preview Lab → · Contrast checker → · Palette generator →

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