#301151#301151

#301151 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.110 H 301.3°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#301151
RGBrgb(48, 17, 81)
HSLhsl(269, 65%, 19%)
HSVhsv(269, 79%, 32%)
CMYKcmyk(40.7%, 79%, 0%, 68.2%)
CIE-LABlab(13.37, 29.71, -32.93)
CIE-LCHlch(13.37, 44.35, 312.06°)
OKLaboklab(26.65% 0.057 -0.0939)
OKLCHoklch(26.65% 0.11 301.3)
XYZxyz(2.9042, 1.6233, 7.9433)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301151 #325111
analogous
#111251 #301151 #501151
triadic
#301151 #513011 #115130
tetradic
#301151 #511112 #325111 #115150
square
#301151 #511112 #325111 #115150
split-complementary
#301151 #515011 #125111
monochromatic
#0F0519 #12061E #301151 #4E1C84 #6C26B6

Accessibility & contrast

On white

15.85
#301151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#301151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301151
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301151#FFFFFF#000000##FFFFFF
##3011511.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#292130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301151;
/* rgb */ color: rgb(48, 17, 81);
/* oklch */ color: oklch(26.6% 0.110 301.3);
Tailwind
colors: {
  custom: {
    50: '#6c5282',
    500: '#301151',
    950: '#000000',
  },
}
SCSS
$custom: #301151;
$custom-light: #6c5282;
$custom-dark: #000000;
JSON
{
  "hex": "#301151",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 269.063,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26647,
    "c": 0.10987,
    "h": 301.3
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#301151
secondary
#608A34
accent
#E84097
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #301151

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

Preview Lab → · Contrast checker → · Palette generator →

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