#3017A0#3017A0

#3017A0 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.198 H 277.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3017A0
RGBrgb(48, 23, 160)
HSLhsl(251, 75%, 36%)
HSVhsv(251, 86%, 63%)
CMYKcmyk(70%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.93, 50.13, -67.99)
CIE-LCHlch(22.93, 84.48, 306.40°)
OKLaboklab(35.84% 0.027 -0.1964)
OKLCHoklch(35.84% 0.198 277.8)
XYZxyz(7.8684, 3.7785, 33.5656)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3017A0 #87A017
analogous
#1742A0 #3017A0 #7417A0
triadic
#3017A0 #A03017 #17A030
tetradic
#3017A0 #A01742 #87A017 #17A074
square
#3017A0 #A01742 #87A017 #17A074
split-complementary
#3017A0 #A07417 #42A017
monochromatic
#100835 #200F6A #3017A0 #401FD6 #684CE5

Accessibility & contrast

On white

11.96
#3017A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3017A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3017A0
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3017A0#FFFFFF#000000##FFFFFF
##3017A01.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3017a0;
/* rgb */ color: rgb(48, 23, 160);
/* oklch */ color: oklch(35.8% 0.198 277.8);
Tailwind
colors: {
  custom: {
    50: '#7b5bbe',
    500: '#3017a0',
    950: '#000000',
  },
}
SCSS
$custom: #3017a0;
$custom-light: #7b5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3017a0",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 250.949,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35835,
    "c": 0.19823,
    "h": 277.8
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#3017A0
secondary
#B1C74C
accent
#F136CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3017A0

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

Preview Lab → · Contrast checker → · Palette generator →

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