#3B115A#3B115A

#3B115A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.123 H 306.2°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#3B115A
RGBrgb(59, 17, 90)
HSLhsl(275, 68%, 21%)
HSVhsv(275, 81%, 35%)
CMYKcmyk(34.4%, 81.1%, 0%, 64.7%)
CIE-LABlab(15.84, 34.44, -34.93)
CIE-LCHlch(15.84, 49.05, 314.60°)
OKLaboklab(29% 0.0726 -0.0993)
OKLCHoklch(29% 0.123 306.2)
XYZxyz(3.8491, 2.0689, 9.8674)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B115A #305A11
analogous
#17115A #3B115A #5A1154
triadic
#3B115A #5A3B11 #115A3B
tetradic
#3B115A #5A1711 #305A11 #11545A
square
#3B115A #5A1711 #305A11 #11545A
split-complementary
#3B115A #545A11 #115A17
monochromatic
#11051A #190727 #3B115A #5D1B8D #7E24C1

Accessibility & contrast

On white

14.85
#3B115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3B115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B115A
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B115A#FFFFFF#000000##FFFFFF
##3B115A1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#352335
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3b115a;
/* rgb */ color: rgb(59, 17, 90);
/* oklch */ color: oklch(29.0% 0.123 306.2);
Tailwind
colors: {
  custom: {
    50: '#755489',
    500: '#3b115a',
    950: '#000000',
  },
}
SCSS
$custom: #3b115a;
$custom-light: #755489;
$custom-dark: #000000;
JSON
{
  "hex": "#3b115a",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 274.521,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29003,
    "c": 0.12306,
    "h": 306.2
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#3B115A
secondary
#5C9334
accent
#EB3D87
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3B115A

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

Preview Lab → · Contrast checker → · Palette generator →

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