#3F2297#3F2297

#3F2297 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.176 H 285.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3F2297
RGBrgb(63, 34, 151)
HSLhsl(255, 63%, 36%)
HSVhsv(255, 77%, 59%)
CMYKcmyk(58.3%, 77.5%, 0%, 40.8%)
CIE-LABlab(25.06, 44.01, -58.91)
CIE-LCHlch(25.06, 73.53, 306.76°)
OKLaboklab(37.36% 0.047 -0.1697)
OKLCHoklch(37.36% 0.176 285.5)
XYZxyz(8.2061, 4.4347, 29.6957)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2297 #7A9722
analogous
#224097 #3F2297 #7A2297
triadic
#3F2297 #973F22 #22973F
tetradic
#3F2297 #972240 #7A9722 #22977A
square
#3F2297 #972240 #7A9722 #22977A
split-complementary
#3F2297 #977A22 #409722
monochromatic
#150C33 #2A1765 #3F2297 #542DC9 #795ADA

Accessibility & contrast

On white

11.13
#3F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2297
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2297#FFFFFF#000000##FFFFFF
##3F22971.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#12435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2297;
/* rgb */ color: rgb(63, 34, 151);
/* oklch */ color: oklch(37.4% 0.176 285.5);
Tailwind
colors: {
  custom: {
    50: '#7f61b7',
    500: '#3f2297',
    950: '#000000',
  },
}
SCSS
$custom: #3f2297;
$custom-light: #7f61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2297",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 254.872,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37364,
    "c": 0.17606,
    "h": 285.5
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#3F2297
secondary
#A4BE57
accent
#E642BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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