#3B155F#3B155F

#3B155F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.124 H 302.9°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#3B155F
RGBrgb(59, 21, 95)
HSLhsl(271, 64%, 23%)
HSVhsv(271, 78%, 37%)
CMYKcmyk(37.9%, 77.9%, 0%, 62.7%)
CIE-LABlab(16.95, 33.84, -36.47)
CIE-LCHlch(16.95, 49.75, 312.86°)
OKLaboklab(29.92% 0.0672 -0.1039)
OKLCHoklch(29.92% 0.124 302.9)
XYZxyz(4.1369, 2.2924, 11.0488)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B155F #395F15
analogous
#16155F #3B155F #5F155E
triadic
#3B155F #5F3B15 #155F3B
tetradic
#3B155F #5F1615 #395F15 #155E5F
square
#3B155F #5F1615 #395F15 #155E5F
split-complementary
#3B155F #5E5F15 #155F16
monochromatic
#100619 #1C0A2D #3B155F #5A2091 #792BC3

Accessibility & contrast

On white

14.40
#3B155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3B155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B155F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B155F#FFFFFF#000000##FFFFFF
##3B155F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#342738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b155f;
/* rgb */ color: rgb(59, 21, 95);
/* oklch */ color: oklch(29.9% 0.124 302.9);
Tailwind
colors: {
  custom: {
    50: '#75568d',
    500: '#3b155f',
    950: '#000000',
  },
}
SCSS
$custom: #3b155f;
$custom-light: #75568d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b155f",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 270.811,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29921,
    "c": 0.12377,
    "h": 302.9
  },
  "luminance": 0.02292
}

Semantic roles & 50–950 ramp

primary
#3B155F
secondary
#67963A
accent
#E74192
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B155F

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

Preview Lab → · Contrast checker → · Palette generator →

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