#3B155E#3B155E

#3B155E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.123 H 303.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#3B155E
RGBrgb(59, 21, 94)
HSLhsl(271, 63%, 23%)
HSVhsv(271, 78%, 37%)
CMYKcmyk(37.2%, 77.7%, 0%, 63.1%)
CIE-LABlab(16.87, 33.58, -35.95)
CIE-LCHlch(16.87, 49.19, 313.05°)
OKLaboklab(29.83% 0.0675 -0.1024)
OKLCHoklch(29.83% 0.123 303.4)
XYZxyz(4.0917, 2.2743, 10.8109)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B155E #385E15
analogous
#17155E #3B155E #5E155C
triadic
#3B155E #5E3B15 #155E3B
tetradic
#3B155E #5E1715 #385E15 #155C5E
square
#3B155E #5E1715 #385E15 #155C5E
split-complementary
#3B155E #5C5E15 #155E17
monochromatic
#100619 #1C0A2C #3B155E #5A2090 #7A2BC2

Accessibility & contrast

On white

14.43
#3B155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3B155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B155E
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B155E#FFFFFF#000000##FFFFFF
##3B155E1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#342738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b155e;
/* rgb */ color: rgb(59, 21, 94);
/* oklch */ color: oklch(29.8% 0.123 303.4);
Tailwind
colors: {
  custom: {
    50: '#75568c',
    500: '#3b155e',
    950: '#000000',
  },
}
SCSS
$custom: #3b155e;
$custom-light: #75568c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b155e",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 271.233,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29832,
    "c": 0.1226,
    "h": 303.4
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#3B155E
secondary
#669539
accent
#E74191
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B155E

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

Preview Lab → · Contrast checker → · Palette generator →

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