#3B155A#3B155A

#3B155A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.118 H 305.4°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#3B155A
RGBrgb(59, 21, 90)
HSLhsl(273, 62%, 22%)
HSVhsv(273, 77%, 35%)
CMYKcmyk(34.4%, 76.7%, 0%, 64.7%)
CIE-LABlab(16.53, 32.51, -33.83)
CIE-LCHlch(16.53, 46.91, 313.86°)
OKLaboklab(29.48% 0.0683 -0.0961)
OKLCHoklch(29.48% 0.118 305.4)
XYZxyz(3.9169, 2.2044, 9.8900)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B155A #345A15
analogous
#18155A #3B155A #5A1557
triadic
#3B155A #5A3B15 #155A3B
tetradic
#3B155A #5A1815 #345A15 #15575A
square
#3B155A #5A1815 #345A15 #15575A
split-complementary
#3B155A #575A15 #155A18
monochromatic
#100619 #1A0928 #3B155A #5C218C #7C2CBD

Accessibility & contrast

On white

14.58
#3B155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B155A
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B155A#FFFFFF#000000##FFFFFF
##3B155A1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#352536
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b155a;
/* rgb */ color: rgb(59, 21, 90);
/* oklch */ color: oklch(29.5% 0.118 305.4);
Tailwind
colors: {
  custom: {
    50: '#745689',
    500: '#3b155a',
    950: '#000000',
  },
}
SCSS
$custom: #3b155a;
$custom-light: #745689;
$custom-dark: #000000;
JSON
{
  "hex": "#3b155a",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 273.043,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29484,
    "c": 0.1179,
    "h": 305.4
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#3B155A
secondary
#619239
accent
#E5438C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3B155A

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

Preview Lab → · Contrast checker → · Palette generator →

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