#3F2287#3F2287

#3F2287 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.157 H 289.1°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3F2287
RGBrgb(63, 34, 135)
HSLhsl(257, 60%, 33%)
HSVhsv(257, 75%, 53%)
CMYKcmyk(53.3%, 74.8%, 0%, 47.1%)
CIE-LABlab(23.50, 39.24, -51.53)
CIE-LCHlch(23.50, 64.77, 307.29°)
OKLaboklab(35.8% 0.0512 -0.1481)
OKLCHoklch(35.8% 0.157 289.1)
XYZxyz(6.9938, 3.9498, 23.3108)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2287 #6A8722
analogous
#223787 #3F2287 #712287
triadic
#3F2287 #873F22 #22873F
tetradic
#3F2287 #872237 #6A8722 #228771
square
#3F2287 #872237 #6A8722 #228771
split-complementary
#3F2287 #877122 #378722
monochromatic
#110925 #281656 #3F2287 #562EB8 #7650D3

Accessibility & contrast

On white

11.73
#3F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3F2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2287
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2287#FFFFFF#000000##FFFFFF
##3F22871.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#243D52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f2287;
/* rgb */ color: rgb(63, 34, 135);
/* oklch */ color: oklch(35.8% 0.157 289.1);
Tailwind
colors: {
  custom: {
    50: '#7c60ab',
    500: '#3f2287',
    950: '#000000',
  },
}
SCSS
$custom: #3f2287;
$custom-light: #7c60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2287",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 257.228,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35796,
    "c": 0.15668,
    "h": 289.1
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#3F2287
secondary
#99B74E
accent
#E345B6
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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