#3115A0#3115A0

#3115A0 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.199 H 278.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3115A0
RGBrgb(49, 21, 160)
HSLhsl(252, 77%, 35%)
HSVhsv(252, 87%, 63%)
CMYKcmyk(69.4%, 86.9%, 0%, 37.3%)
CIE-LABlab(22.75, 50.99, -68.29)
CIE-LCHlch(22.75, 85.22, 306.75°)
OKLaboklab(35.73% 0.0293 -0.1972)
OKLCHoklch(35.73% 0.199 278.4)
XYZxyz(7.8779, 3.7267, 33.5551)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3115A0 #84A015
analogous
#153FA0 #3115A0 #7615A0
triadic
#3115A0 #A03115 #15A031
tetradic
#3115A0 #A0153F #84A015 #15A076
square
#3115A0 #A0153F #84A015 #15A076
split-complementary
#3115A0 #A07615 #3FA015
monochromatic
#100734 #200E6A #3115A0 #421CD6 #6848E7

Accessibility & contrast

On white

12.03
#3115A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3115A0
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3115A0#FFFFFF#000000##FFFFFF
##3115A01.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3115a0;
/* rgb */ color: rgb(49, 21, 160);
/* oklch */ color: oklch(35.7% 0.199 278.4);
Tailwind
colors: {
  custom: {
    50: '#7b5abe',
    500: '#3115a0',
    950: '#000000',
  },
}
SCSS
$custom: #3115a0;
$custom-light: #7b5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#3115a0",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 252.086,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35734,
    "c": 0.19934,
    "h": 278.4
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3115A0

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

Preview Lab → · Contrast checker → · Palette generator →

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