#3F2278#3F2278

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

Color values

HEX#3F2278
RGBrgb(63, 34, 120)
HSLhsl(260, 56%, 30%)
HSVhsv(260, 72%, 47%)
CMYKcmyk(47.5%, 71.7%, 0%, 52.9%)
CIE-LABlab(22.15, 34.78, -44.27)
CIE-LCHlch(22.15, 56.30, 308.15°)
OKLaboklab(34.41% 0.0544 -0.1267)
OKLCHoklch(34.41% 0.138 293.2)
XYZxyz(6.0112, 3.5567, 18.1355)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2278 #5B7822
analogous
#223078 #3F2278 #6A2278
triadic
#3F2278 #783F22 #22783F
tetradic
#3F2278 #782230 #5B7822 #22786A
square
#3F2278 #782230 #5B7822 #22786A
split-complementary
#3F2278 #786A22 #307822
monochromatic
#0D0719 #261448 #3F2278 #5830A8 #7549CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F2278#FFFFFF#000000##FFFFFF
##3F22781.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)
#00367B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#2E374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f2278;
/* rgb */ color: rgb(63, 34, 120);
/* oklch */ color: oklch(34.4% 0.138 293.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fa0',
    500: '#3f2278',
    950: '#000000',
  },
}
SCSS
$custom: #3f2278;
$custom-light: #7a5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2278",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 260.233,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.13793,
    "h": 293.2
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#3F2278
secondary
#8BAB4B
accent
#DF49AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #3F2278

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

Preview Lab → · Contrast checker → · Palette generator →

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