#3B165D#3B165D

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

Color values

HEX#3B165D
RGBrgb(59, 22, 93)
HSLhsl(271, 62%, 23%)
HSVhsv(271, 76%, 36%)
CMYKcmyk(36.6%, 76.3%, 0%, 63.5%)
CIE-LABlab(16.96, 32.80, -35.13)
CIE-LCHlch(16.96, 48.06, 313.04°)
OKLaboklab(29.87% 0.0666 -0.1)
OKLCHoklch(29.87% 0.12 303.7)
XYZxyz(4.0659, 2.2939, 10.5824)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B165D #385D16
analogous
#18165D #3B165D #5D165B
triadic
#3B165D #5D3B16 #165D3B
tetradic
#3B165D #5D1816 #385D16 #165B5D
square
#3B165D #5D1816 #385D16 #165B5D
split-complementary
#3B165D #5B5D16 #165D18
monochromatic
#100619 #1C0A2C #3B165D #5A228E #7A2DC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3B165D#FFFFFF#000000##FFFFFF
##3B165D1.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)
#00295F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#342738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b165d;
/* rgb */ color: rgb(59, 22, 93);
/* oklch */ color: oklch(29.9% 0.120 303.7);
Tailwind
colors: {
  custom: {
    50: '#75578b',
    500: '#3b165d',
    950: '#000000',
  },
}
SCSS
$custom: #3b165d;
$custom-light: #75578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b165d",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 271.268,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29872,
    "c": 0.12009,
    "h": 303.7
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#3B165D
secondary
#66943B
accent
#E54390
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B165D

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

Preview Lab → · Contrast checker → · Palette generator →

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