#3317A1#3317A1

#3317A1 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.199 H 279.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#3317A1
RGBrgb(51, 23, 161)
HSLhsl(252, 75%, 36%)
HSVhsv(252, 86%, 63%)
CMYKcmyk(68.3%, 85.7%, 0%, 36.9%)
CIE-LABlab(23.30, 50.65, -67.97)
CIE-LCHlch(23.30, 84.77, 306.69°)
OKLaboklab(36.19% 0.0313 -0.1962)
OKLCHoklch(36.19% 0.199 279.1)
XYZxyz(8.1026, 3.8891, 34.0350)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3317A1 #85A117
analogous
#1740A1 #3317A1 #7817A1
triadic
#3317A1 #A13317 #17A133
tetradic
#3317A1 #A11740 #85A117 #17A178
square
#3317A1 #A11740 #85A117 #17A178
split-complementary
#3317A1 #A17817 #40A117
monochromatic
#110836 #220F6B #3317A1 #441FD7 #6C4DE6

Accessibility & contrast

On white

11.81
#3317A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3317A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3317A1
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3317A1#FFFFFF#000000##FFFFFF
##3317A11.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3317a1;
/* rgb */ color: rgb(51, 23, 161);
/* oklch */ color: oklch(36.2% 0.199 279.1);
Tailwind
colors: {
  custom: {
    50: '#7c5bbe',
    500: '#3317a1',
    950: '#000000',
  },
}
SCSS
$custom: #3317a1;
$custom-light: #7c5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3317a1",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 252.174,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36191,
    "c": 0.19872,
    "h": 279.1
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#3317A1
secondary
#AEC74C
accent
#F236CC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3317A1

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

Preview Lab → · Contrast checker → · Palette generator →

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