#3B117E#3B117E

#3B117E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.163 H 291.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#3B117E
RGBrgb(59, 17, 126)
HSLhsl(263, 76%, 28%)
HSVhsv(263, 87%, 49%)
CMYKcmyk(53.2%, 86.5%, 0%, 50.6%)
CIE-LABlab(19.38, 44.00, -52.65)
CIE-LCHlch(19.38, 68.62, 309.89°)
OKLaboklab(32.54% 0.0606 -0.1513)
OKLCHoklch(32.54% 0.163 291.8)
XYZxyz(5.7689, 2.8368, 19.9782)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B117E #547E11
analogous
#111E7E #3B117E #71117E
triadic
#3B117E #7E3B11 #117E3B
tetradic
#3B117E #7E111E #547E11 #117E71
square
#3B117E #7E111E #547E11 #117E71
split-complementary
#3B117E #7E7111 #1E7E11
monochromatic
#0D041B #220A48 #3B117E #5418B4 #6F27E2

Accessibility & contrast

On white

13.40
#3B117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3B117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B117E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B117E#FFFFFF#000000##FFFFFF
##3B117E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#233349
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3b117e;
/* rgb */ color: rgb(59, 17, 126);
/* oklch */ color: oklch(32.5% 0.163 291.8);
Tailwind
colors: {
  custom: {
    50: '#7a56a4',
    500: '#3b117e',
    950: '#000000',
  },
}
SCSS
$custom: #3b117e;
$custom-light: #7a56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b117e",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 263.119,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32536,
    "c": 0.163,
    "h": 291.8
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#3B117E
secondary
#84B437
accent
#F335AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3B117E

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

Preview Lab → · Contrast checker → · Palette generator →

#3B117E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva