#3B155B#3B155B

#3B155B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.6% C 0.119 H 304.9°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#3B155B
RGBrgb(59, 21, 91)
HSLhsl(273, 63%, 22%)
HSVhsv(273, 77%, 36%)
CMYKcmyk(35.2%, 76.9%, 0%, 64.3%)
CIE-LABlab(16.61, 32.77, -34.36)
CIE-LCHlch(16.61, 47.48, 313.65°)
OKLaboklab(29.57% 0.0681 -0.0977)
OKLCHoklch(29.57% 0.119 304.9)
XYZxyz(3.9597, 2.2215, 10.1157)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B155B #355B15
analogous
#18155B #3B155B #5B1558
triadic
#3B155B #5B3B15 #155B3B
tetradic
#3B155B #5B1815 #355B15 #15585B
square
#3B155B #5B1815 #355B15 #15585B
split-complementary
#3B155B #585B15 #155B18
monochromatic
#100619 #1B0A29 #3B155B #5B208D #7B2CBE

Accessibility & contrast

On white

14.54
#3B155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3B155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B155B
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B155B#FFFFFF#000000##FFFFFF
##3B155B1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#352636
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b155b;
/* rgb */ color: rgb(59, 21, 91);
/* oklch */ color: oklch(29.6% 0.119 304.9);
Tailwind
colors: {
  custom: {
    50: '#74568a',
    500: '#3b155b',
    950: '#000000',
  },
}
SCSS
$custom: #3b155b;
$custom-light: #74568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b155b",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 272.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2957,
    "c": 0.11907,
    "h": 304.9
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#3B155B
secondary
#629239
accent
#E6428D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B155B

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

Preview Lab → · Contrast checker → · Palette generator →

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