#3015A1#3015A1

#3015A1 is a dark, highly saturated violet. Relative luminance 0.037; OKLCH L 35.8% C 0.201 H 277.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3015A1
RGBrgb(48, 21, 161)
HSLhsl(252, 77%, 36%)
HSVhsv(252, 87%, 63%)
CMYKcmyk(70.2%, 87%, 0%, 36.9%)
CIE-LABlab(22.78, 51.20, -68.84)
CIE-LCHlch(22.78, 85.79, 306.64°)
OKLaboklab(35.77% 0.0274 -0.1988)
OKLCHoklch(35.77% 0.201 277.8)
XYZxyz(7.9180, 3.7372, 34.0154)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3015A1 #86A115
analogous
#1540A1 #3015A1 #7615A1
triadic
#3015A1 #A13015 #15A130
tetradic
#3015A1 #A11540 #86A115 #15A176
square
#3015A1 #A11540 #86A115 #15A176
split-complementary
#3015A1 #A17615 #40A115
monochromatic
#100735 #200E6B #3015A1 #401CD7 #6849E7

Accessibility & contrast

On white

12.02
#3015A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3015A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3015A1
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3015A1#FFFFFF#000000##FFFFFF
##3015A11.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3015a1;
/* rgb */ color: rgb(48, 21, 161);
/* oklch */ color: oklch(35.8% 0.201 277.8);
Tailwind
colors: {
  custom: {
    50: '#7b5abe',
    500: '#3015a1',
    950: '#000000',
  },
}
SCSS
$custom: #3015a1;
$custom-light: #7b5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#3015a1",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 251.571,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35772,
    "c": 0.20068,
    "h": 277.8
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#3015A1
secondary
#B0C849
accent
#F334CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3015A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3015A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva