#301142#301142

#301142 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.091 H 310.6°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#301142
RGBrgb(48, 17, 66)
HSLhsl(278, 59%, 16%)
HSVhsv(278, 74%, 26%)
CMYKcmyk(27.3%, 74.2%, 0%, 74.1%)
CIE-LABlab(12.11, 25.59, -24.57)
CIE-LCHlch(12.11, 35.47, 316.16°)
OKLaboklab(25.35% 0.0594 -0.0693)
OKLCHoklch(25.35% 0.091 310.6)
XYZxyz(2.4026, 1.4227, 5.3012)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301142 #234211
analogous
#181142 #301142 #42113C
triadic
#301142 #423011 #114230
tetradic
#301142 #421811 #234211 #113C42
square
#301142 #421811 #234211 #113C42
split-complementary
#301142 #3C4211 #114218
monochromatic
#120618 #120618 #301142 #531E73 #772AA3

Accessibility & contrast

On white

16.35
#301142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301142
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301142#FFFFFF#000000##FFFFFF
##3011421.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#0B2041
Tritanopia (blue-blind)
#2E1B27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301142;
/* rgb */ color: rgb(48, 17, 66);
/* oklch */ color: oklch(25.3% 0.091 310.6);
Tailwind
colors: {
  custom: {
    50: '#6a5177',
    500: '#301142',
    950: '#000000',
  },
}
SCSS
$custom: #301142;
$custom-light: #6a5177;
$custom-dark: #000000;
JSON
{
  "hex": "#301142",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 277.959,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25346,
    "c": 0.09131,
    "h": 310.6
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#301142
secondary
#4E7C33
accent
#E2467F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301142

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

Preview Lab → · Contrast checker → · Palette generator →

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