#3B2287#3B2287

#3B2287 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.157 H 286.7°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#3B2287
RGBrgb(59, 34, 135)
HSLhsl(255, 60%, 33%)
HSVhsv(255, 75%, 53%)
CMYKcmyk(56.3%, 74.8%, 0%, 47.1%)
CIE-LABlab(23.08, 38.60, -52.25)
CIE-LCHlch(23.08, 64.96, 306.45°)
OKLaboklab(35.39% 0.045 -0.1503)
OKLCHoklch(35.39% 0.157 286.7)
XYZxyz(6.7475, 3.8228, 23.2993)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2287 #6E8722
analogous
#223C87 #3B2287 #6D2287
triadic
#3B2287 #873B22 #22873B
tetradic
#3B2287 #87223C #6E8722 #22876D
square
#3B2287 #87223C #6E8722 #22876D
split-complementary
#3B2287 #876D22 #3C8722
monochromatic
#100925 #261656 #3B2287 #502EB8 #7150D3

Accessibility & contrast

On white

11.90
#3B2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3B2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2287
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2287#FFFFFF#000000##FFFFFF
##3B22871.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#1A3D52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b2287;
/* rgb */ color: rgb(59, 34, 135);
/* oklch */ color: oklch(35.4% 0.157 286.7);
Tailwind
colors: {
  custom: {
    50: '#7a60ab',
    500: '#3b2287',
    950: '#000000',
  },
}
SCSS
$custom: #3b2287;
$custom-light: #7a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2287",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 254.851,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35392,
    "c": 0.15691,
    "h": 286.7
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#3B2287
secondary
#9DB74E
accent
#E345BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3B2287

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

Preview Lab → · Contrast checker → · Palette generator →

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