#3B227D#3B227D

#3B227D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.144 H 289.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3B227D
RGBrgb(59, 34, 125)
HSLhsl(256, 57%, 31%)
HSVhsv(256, 73%, 49%)
CMYKcmyk(52.8%, 72.8%, 0%, 51%)
CIE-LABlab(22.14, 35.53, -47.48)
CIE-LCHlch(22.14, 59.30, 306.81°)
OKLaboklab(34.44% 0.0473 -0.1363)
OKLCHoklch(34.44% 0.144 289.1)
XYZxyz(6.0763, 3.5543, 19.7639)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B227D #647D22
analogous
#22367D #3B227D #68227D
triadic
#3B227D #7D3B22 #227D3B
tetradic
#3B227D #7D2236 #647D22 #227D68
square
#3B227D #7D2236 #647D22 #227D68
split-complementary
#3B227D #7D6822 #367D22
monochromatic
#0E081D #24154D #3B227D #522FAD #6F4BCE

Accessibility & contrast

On white

12.27
#3B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3B227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B227D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B227D#FFFFFF#000000##FFFFFF
##3B227D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#233A4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b227d;
/* rgb */ color: rgb(59, 34, 125);
/* oklch */ color: oklch(34.4% 0.144 289.1);
Tailwind
colors: {
  custom: {
    50: '#785fa3',
    500: '#3b227d',
    950: '#000000',
  },
}
SCSS
$custom: #3b227d;
$custom-light: #785fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b227d",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 256.484,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34439,
    "c": 0.14429,
    "h": 289.1
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#3B227D
secondary
#94B04B
accent
#E047B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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