#3015A0#3015A0

#3015A0 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.200 H 278.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3015A0
RGBrgb(48, 21, 160)
HSLhsl(252, 77%, 35%)
HSVhsv(252, 87%, 63%)
CMYKcmyk(70%, 86.9%, 0%, 37.3%)
CIE-LABlab(22.66, 50.92, -68.43)
CIE-LCHlch(22.66, 85.30, 306.65°)
OKLaboklab(35.65% 0.0277 -0.1976)
OKLCHoklch(35.65% 0.2 278)
XYZxyz(7.8302, 3.7021, 33.5528)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3015A0 #85A015
analogous
#153FA0 #3015A0 #7615A0
triadic
#3015A0 #A03015 #15A030
tetradic
#3015A0 #A0153F #85A015 #15A076
square
#3015A0 #A0153F #85A015 #15A076
split-complementary
#3015A0 #A07615 #3FA015
monochromatic
#100734 #200E6A #3015A0 #401CD6 #6748E7

Accessibility & contrast

On white

12.06
#3015A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3015A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3015A0
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3015A0#FFFFFF#000000##FFFFFF
##3015A01.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3015a0;
/* rgb */ color: rgb(48, 21, 160);
/* oklch */ color: oklch(35.7% 0.200 278.0);
Tailwind
colors: {
  custom: {
    50: '#7b5abe',
    500: '#3015a0',
    950: '#000000',
  },
}
SCSS
$custom: #3015a0;
$custom-light: #7b5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#3015a0",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 251.655,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.19956,
    "h": 278
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#3015A0
secondary
#AFC849
accent
#F334CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3015A0

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

Preview Lab → · Contrast checker → · Palette generator →

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