#3B145B#3B145B

#3B145B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.120 H 305.1°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#3B145B
RGBrgb(59, 20, 91)
HSLhsl(273, 64%, 22%)
HSVhsv(273, 78%, 36%)
CMYKcmyk(35.2%, 78%, 0%, 64.3%)
CIE-LABlab(16.43, 33.28, -34.65)
CIE-LCHlch(16.43, 48.04, 313.84°)
OKLaboklab(29.44% 0.0692 -0.0985)
OKLCHoklch(29.44% 0.12 305.1)
XYZxyz(3.9417, 2.1855, 10.1097)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B145B #345B14
analogous
#18145B #3B145B #5B1458
triadic
#3B145B #5B3B14 #145B3B
tetradic
#3B145B #5B1814 #345B14 #14585B
square
#3B145B #5B1814 #345B14 #14585B
split-complementary
#3B145B #585B14 #145B18
monochromatic
#100619 #1A0929 #3B145B #5C1F8D #7C2ABF

Accessibility & contrast

On white

14.61
#3B145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B145B
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B145B#FFFFFF#000000##FFFFFF
##3B145B1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#352536
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3b145b;
/* rgb */ color: rgb(59, 20, 91);
/* oklch */ color: oklch(29.4% 0.120 305.1);
Tailwind
colors: {
  custom: {
    50: '#75568a',
    500: '#3b145b',
    950: '#000000',
  },
}
SCSS
$custom: #3b145b;
$custom-light: #75568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b145b",
  "rgb": {
    "r": 59,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 272.958,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29444,
    "c": 0.12041,
    "h": 305.1
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

primary
#3B145B
secondary
#619338
accent
#E7418C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B145B

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

Preview Lab → · Contrast checker → · Palette generator →

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