#3B115C#3B115C

#3B115C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.125 H 305.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#3B115C
RGBrgb(59, 17, 92)
HSLhsl(274, 69%, 21%)
HSVhsv(274, 82%, 36%)
CMYKcmyk(35.9%, 81.5%, 0%, 63.9%)
CIE-LABlab(16.02, 34.96, -35.98)
CIE-LCHlch(16.02, 50.17, 314.17°)
OKLaboklab(29.18% 0.0721 -0.1024)
OKLCHoklch(29.18% 0.125 305.1)
XYZxyz(3.9354, 2.1034, 10.3218)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B115C #325C11
analogous
#16115C #3B115C #5C1158
triadic
#3B115C #5C3B11 #115C3B
tetradic
#3B115C #5C1611 #325C11 #11585C
square
#3B115C #5C1611 #325C11 #11585C
split-complementary
#3B115C #585C11 #115C16
monochromatic
#11051A #1A0728 #3B115C #5C1B90 #7D24C3

Accessibility & contrast

On white

14.78
#3B115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B115C
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B115C#FFFFFF#000000##FFFFFF
##3B115C1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#352436
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b115c;
/* rgb */ color: rgb(59, 17, 92);
/* oklch */ color: oklch(29.2% 0.125 305.1);
Tailwind
colors: {
  custom: {
    50: '#75548b',
    500: '#3b115c',
    950: '#000000',
  },
}
SCSS
$custom: #3b115c;
$custom-light: #75548b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b115c",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 273.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29181,
    "c": 0.12529,
    "h": 305.1
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#3B115C
secondary
#5F9534
accent
#EC3C89
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B115C

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

Preview Lab → · Contrast checker → · Palette generator →

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