#3117A1#3117A1

#3117A1 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.199 H 278.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3117A1
RGBrgb(49, 23, 161)
HSLhsl(251, 75%, 36%)
HSVhsv(251, 86%, 63%)
CMYKcmyk(69.6%, 85.7%, 0%, 36.9%)
CIE-LABlab(23.13, 50.50, -68.26)
CIE-LCHlch(23.13, 84.91, 306.49°)
OKLaboklab(36.03% 0.0282 -0.1971)
OKLCHoklch(36.03% 0.199 278.1)
XYZxyz(8.0040, 3.8383, 34.0304)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3117A1 #87A117
analogous
#1742A1 #3117A1 #7617A1
triadic
#3117A1 #A13117 #17A131
tetradic
#3117A1 #A11742 #87A117 #17A176
square
#3117A1 #A11742 #87A117 #17A176
split-complementary
#3117A1 #A17617 #42A117
monochromatic
#100836 #210F6B #3117A1 #411FD7 #6A4DE6

Accessibility & contrast

On white

11.88
#3117A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3117A1
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3117A1#FFFFFF#000000##FFFFFF
##3117A11.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.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: #3117a1;
/* rgb */ color: rgb(49, 23, 161);
/* oklch */ color: oklch(36.0% 0.199 278.1);
Tailwind
colors: {
  custom: {
    50: '#7b5bbe',
    500: '#3117a1',
    950: '#000000',
  },
}
SCSS
$custom: #3117a1;
$custom-light: #7b5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3117a1",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 251.304,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3603,
    "c": 0.19915,
    "h": 278.1
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#3117A1
secondary
#B0C74C
accent
#F236CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3117A1

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

Preview Lab → · Contrast checker → · Palette generator →

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