#3316A1#3316A1

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

Color values

HEX#3316A1
RGBrgb(51, 22, 161)
HSLhsl(253, 76%, 36%)
HSVhsv(253, 86%, 63%)
CMYKcmyk(68.3%, 86.3%, 0%, 36.9%)
CIE-LABlab(23.17, 51.04, -68.19)
CIE-LCHlch(23.17, 85.18, 306.82°)
OKLaboklab(36.1% 0.0316 -0.1969)
OKLCHoklch(36.1% 0.199 279.1)
XYZxyz(8.0831, 3.8501, 34.0285)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3316A1 #84A116
analogous
#163EA1 #3316A1 #7816A1
triadic
#3316A1 #A13316 #16A133
tetradic
#3316A1 #A1163E #84A116 #16A178
square
#3316A1 #A1163E #84A116 #16A178
split-complementary
#3316A1 #A17816 #3EA116
monochromatic
#110735 #220F6B #3316A1 #441DD7 #6B4BE6

Accessibility & contrast

On white

11.86
#3316A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3316A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3316A1
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3316A1#FFFFFF#000000##FFFFFF
##3316A11.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3316a1;
/* rgb */ color: rgb(51, 22, 161);
/* oklch */ color: oklch(36.1% 0.199 279.1);
Tailwind
colors: {
  custom: {
    50: '#7c5bbe',
    500: '#3316a1',
    950: '#000000',
  },
}
SCSS
$custom: #3316a1;
$custom-light: #7c5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3316a1",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 252.518,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36101,
    "c": 0.19939,
    "h": 279.1
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#3316A1
secondary
#AEC84B
accent
#F335CB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3316A1

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

Preview Lab → · Contrast checker → · Palette generator →

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