#301342#301342

#301342 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.088 H 310.0°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#301342
RGBrgb(48, 19, 66)
HSLhsl(277, 55%, 17%)
HSVhsv(277, 71%, 26%)
CMYKcmyk(27.3%, 71.2%, 0%, 74.1%)
CIE-LABlab(12.53, 24.43, -23.89)
CIE-LCHlch(12.53, 34.17, 315.64°)
OKLaboklab(25.65% 0.0566 -0.0674)
OKLCHoklch(25.65% 0.088 310)
XYZxyz(2.4350, 1.4875, 5.3120)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301342 #254213
analogous
#191342 #301342 #42133D
triadic
#301342 #423013 #134230
tetradic
#301342 #421913 #254213 #133D42
square
#301342 #421913 #254213 #133D42
split-complementary
#301342 #3D4213 #134219
monochromatic
#110718 #110718 #301342 #532172 #752EA1

Accessibility & contrast

On white

16.19
#301342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#301342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301342
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301342#FFFFFF#000000##FFFFFF
##3013421.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F43
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#2E1C28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301342;
/* rgb */ color: rgb(48, 19, 66);
/* oklch */ color: oklch(25.6% 0.088 310.0);
Tailwind
colors: {
  custom: {
    50: '#6a5377',
    500: '#301342',
    950: '#000000',
  },
}
SCSS
$custom: #301342;
$custom-light: #6a5377;
$custom-dark: #000000;
JSON
{
  "hex": "#301342",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 277.021,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25649,
    "c": 0.08798,
    "h": 310
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#301342
secondary
#507B36
accent
#DF4982
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301342

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

Preview Lab → · Contrast checker → · Palette generator →

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