#3315A1#3315A1

#3315A1 is a dark, highly saturated violet. Relative luminance 0.038; OKLCH L 36.0% C 0.200 H 279.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#3315A1
RGBrgb(51, 21, 161)
HSLhsl(253, 77%, 36%)
HSVhsv(253, 87%, 63%)
CMYKcmyk(68.3%, 87%, 0%, 36.9%)
CIE-LABlab(23.04, 51.42, -68.40)
CIE-LCHlch(23.04, 85.58, 306.94°)
OKLaboklab(36.01% 0.032 -0.1975)
OKLCHoklch(36.01% 0.2 279.2)
XYZxyz(8.0644, 3.8127, 34.0222)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3315A1 #83A115
analogous
#153DA1 #3315A1 #7915A1
triadic
#3315A1 #A13315 #15A133
tetradic
#3315A1 #A1153D #83A115 #15A179
square
#3315A1 #A1153D #83A115 #15A179
split-complementary
#3315A1 #A17915 #3DA115
monochromatic
#110735 #220E6B #3315A1 #441CD7 #6B49E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3315A1#FFFFFF#000000##FFFFFF
##3315A11.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: #3315a1;
/* rgb */ color: rgb(51, 21, 161);
/* oklch */ color: oklch(36.0% 0.200 279.2);
Tailwind
colors: {
  custom: {
    50: '#7c5abe',
    500: '#3315a1',
    950: '#000000',
  },
}
SCSS
$custom: #3315a1;
$custom-light: #7c5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#3315a1",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 252.857,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36014,
    "c": 0.20004,
    "h": 279.2
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#3315A1
secondary
#ADC849
accent
#F334CB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3315A1

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

Preview Lab → · Contrast checker → · Palette generator →

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