#3115A1#3115A1

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

Color values

HEX#3115A1
RGBrgb(49, 21, 161)
HSLhsl(252, 77%, 36%)
HSVhsv(252, 87%, 63%)
CMYKcmyk(69.6%, 87%, 0%, 36.9%)
CIE-LABlab(22.87, 51.28, -68.70)
CIE-LCHlch(22.87, 85.72, 306.74°)
OKLaboklab(35.85% 0.0289 -0.1984)
OKLCHoklch(35.85% 0.2 278.3)
XYZxyz(7.9657, 3.7618, 34.0176)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3115A1 #85A115
analogous
#153FA1 #3115A1 #7715A1
triadic
#3115A1 #A13115 #15A131
tetradic
#3115A1 #A1153F #85A115 #15A177
square
#3115A1 #A1153F #85A115 #15A177
split-complementary
#3115A1 #A17715 #3FA115
monochromatic
#100735 #210E6B #3115A1 #411CD7 #6949E7

Accessibility & contrast

On white

11.98
#3115A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3115A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3115A1
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3115A1#FFFFFF#000000##FFFFFF
##3115A11.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.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: #3115a1;
/* rgb */ color: rgb(49, 21, 161);
/* oklch */ color: oklch(35.9% 0.200 278.3);
Tailwind
colors: {
  custom: {
    50: '#7b5abe',
    500: '#3115a1',
    950: '#000000',
  },
}
SCSS
$custom: #3115a1;
$custom-light: #7b5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#3115a1",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 252,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.20045,
    "h": 278.3
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#3115A1
secondary
#AFC849
accent
#F334CD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3115A1

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

Preview Lab → · Contrast checker → · Palette generator →

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