#3017A1#3017A1

#3017A1 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.199 H 277.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#3017A1
RGBrgb(48, 23, 161)
HSLhsl(251, 75%, 36%)
HSVhsv(251, 86%, 63%)
CMYKcmyk(70.2%, 85.7%, 0%, 36.9%)
CIE-LABlab(23.05, 50.42, -68.40)
CIE-LCHlch(23.05, 84.98, 306.40°)
OKLaboklab(35.95% 0.0267 -0.1976)
OKLCHoklch(35.95% 0.199 277.7)
XYZxyz(7.9563, 3.8137, 34.0281)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3017A1 #88A117
analogous
#1743A1 #3017A1 #7517A1
triadic
#3017A1 #A13017 #17A130
tetradic
#3017A1 #A11743 #88A117 #17A175
square
#3017A1 #A11743 #88A117 #17A175
split-complementary
#3017A1 #A17517 #43A117
monochromatic
#100836 #200F6B #3017A1 #401FD7 #694DE6

Accessibility & contrast

On white

11.91
#3017A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3017A1
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3017A1#FFFFFF#000000##FFFFFF
##3017A11.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3017a1;
/* rgb */ color: rgb(48, 23, 161);
/* oklch */ color: oklch(36.0% 0.199 277.7);
Tailwind
colors: {
  custom: {
    50: '#7b5bbe',
    500: '#3017a1',
    950: '#000000',
  },
}
SCSS
$custom: #3017a1;
$custom-light: #7b5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3017a1",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 250.87,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.19937,
    "h": 277.7
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3017A1

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

Preview Lab → · Contrast checker → · Palette generator →

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