#3B165F#3B165F

#3B165F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.122 H 302.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#3B165F
RGBrgb(59, 22, 95)
HSLhsl(270, 62%, 23%)
HSVhsv(270, 77%, 37%)
CMYKcmyk(37.9%, 76.8%, 0%, 62.7%)
CIE-LABlab(17.13, 33.34, -36.18)
CIE-LCHlch(17.13, 49.20, 312.66°)
OKLaboklab(30.05% 0.0662 -0.1031)
OKLCHoklch(30.05% 0.122 302.7)
XYZxyz(4.1556, 2.3298, 11.0550)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B165F #3A5F16
analogous
#16165F #3B165F #5F165E
triadic
#3B165F #5F3B16 #165F3B
tetradic
#3B165F #5F1616 #3A5F16 #165E5F
square
#3B165F #5F1616 #3A5F16 #165E5F
split-complementary
#3B165F #5E5F16 #165F16
monochromatic
#0F0619 #1C0A2D #3B165F #5A2291 #792DC2

Accessibility & contrast

On white

14.32
#3B165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3B165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B165F
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B165F#FFFFFF#000000##FFFFFF
##3B165F1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#342839
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b165f;
/* rgb */ color: rgb(59, 22, 95);
/* oklch */ color: oklch(30.0% 0.122 302.7);
Tailwind
colors: {
  custom: {
    50: '#75578d',
    500: '#3b165f',
    950: '#000000',
  },
}
SCSS
$custom: #3b165f;
$custom-light: #75578d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b165f",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 270.411,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30047,
    "c": 0.12246,
    "h": 302.7
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#3B165F
secondary
#68963B
accent
#E54293
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B165F

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

Preview Lab → · Contrast checker → · Palette generator →

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