#3F2296#3F2296

#3F2296 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.175 H 285.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3F2296
RGBrgb(63, 34, 150)
HSLhsl(255, 63%, 36%)
HSVhsv(255, 77%, 59%)
CMYKcmyk(58%, 77.3%, 0%, 41.2%)
CIE-LABlab(24.96, 43.71, -58.46)
CIE-LCHlch(24.96, 72.99, 306.79°)
OKLaboklab(37.26% 0.0473 -0.1683)
OKLCHoklch(37.26% 0.175 285.7)
XYZxyz(8.1253, 4.4023, 29.2698)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2296 #799622
analogous
#223F96 #3F2296 #792296
triadic
#3F2296 #963F22 #22963F
tetradic
#3F2296 #96223F #799622 #229679
square
#3F2296 #96223F #799622 #229679
split-complementary
#3F2296 #967922 #3F9622
monochromatic
#150B32 #2A1764 #3F2296 #542DC8 #7959D9

Accessibility & contrast

On white

11.17
#3F2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3F2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2296
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2296#FFFFFF#000000##FFFFFF
##3F22961.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#13435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2296;
/* rgb */ color: rgb(63, 34, 150);
/* oklch */ color: oklch(37.3% 0.175 285.7);
Tailwind
colors: {
  custom: {
    50: '#7f61b6',
    500: '#3f2296',
    950: '#000000',
  },
}
SCSS
$custom: #3f2296;
$custom-light: #7f61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2296",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 255,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37263,
    "c": 0.17486,
    "h": 285.7
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F2296

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

Preview Lab → · Contrast checker → · Palette generator →

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