#301551#301551

#301551 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.104 H 300.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#301551
RGBrgb(48, 21, 81)
HSLhsl(267, 59%, 20%)
HSVhsv(267, 74%, 32%)
CMYKcmyk(40.7%, 74.1%, 0%, 68.2%)
CIE-LABlab(14.17, 27.49, -31.64)
CIE-LCHlch(14.17, 41.91, 310.99°)
OKLaboklab(27.21% 0.0523 -0.0901)
OKLCHoklch(27.21% 0.104 300.1)
XYZxyz(2.9719, 1.7588, 7.9659)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301551 #365115
analogous
#151851 #301551 #4E1551
triadic
#301551 #513015 #155130
tetradic
#301551 #511518 #365115 #15514E
square
#301551 #511518 #365115 #15514E
split-complementary
#301551 #514E15 #185115
monochromatic
#0E0618 #130820 #301551 #4D2282 #6A2EB2

Accessibility & contrast

On white

15.53
#301551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301551
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301551#FFFFFF#000000##FFFFFF
##3015511.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#292331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301551;
/* rgb */ color: rgb(48, 21, 81);
/* oklch */ color: oklch(27.2% 0.104 300.1);
Tailwind
colors: {
  custom: {
    50: '#6c5482',
    500: '#301551',
    950: '#000000',
  },
}
SCSS
$custom: #301551;
$custom-light: #6c5482;
$custom-dark: #000000;
JSON
{
  "hex": "#301551",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 267,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.27213,
    "c": 0.10421,
    "h": 300.1
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#301551
secondary
#658939
accent
#E2469C
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301551

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

Preview Lab → · Contrast checker → · Palette generator →

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