#3B115B#3B115B

#3B115B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.124 H 305.6°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#3B115B
RGBrgb(59, 17, 91)
HSLhsl(274, 69%, 21%)
HSVhsv(274, 81%, 36%)
CMYKcmyk(35.2%, 81.3%, 0%, 64.3%)
CIE-LABlab(15.93, 34.70, -35.46)
CIE-LCHlch(15.93, 49.61, 314.38°)
OKLaboklab(29.09% 0.0724 -0.1009)
OKLCHoklch(29.09% 0.124 305.6)
XYZxyz(3.8920, 2.0861, 10.0931)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B115B #315B11
analogous
#16115B #3B115B #5B1156
triadic
#3B115B #5B3B11 #115B3B
tetradic
#3B115B #5B1611 #315B11 #11565B
square
#3B115B #5B1611 #315B11 #11565B
split-complementary
#3B115B #565B11 #115B16
monochromatic
#11051A #1A0727 #3B115B #5C1B8F #7E24C2

Accessibility & contrast

On white

14.82
#3B115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3B115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B115B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B115B#FFFFFF#000000##FFFFFF
##3B115B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#352435
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b115b;
/* rgb */ color: rgb(59, 17, 91);
/* oklch */ color: oklch(29.1% 0.124 305.6);
Tailwind
colors: {
  custom: {
    50: '#75548a',
    500: '#3b115b',
    950: '#000000',
  },
}
SCSS
$custom: #3b115b;
$custom-light: #75548a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b115b",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 274.054,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29092,
    "c": 0.12417,
    "h": 305.6
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#3B115B
secondary
#5D9434
accent
#EB3C88
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B115B

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

Preview Lab → · Contrast checker → · Palette generator →

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