#3F2882#3F2882

#3F2882 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.143 H 289.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#3F2882
RGBrgb(63, 40, 130)
HSLhsl(255, 53%, 33%)
HSVhsv(255, 69%, 51%)
CMYKcmyk(51.5%, 69.2%, 0%, 49%)
CIE-LABlab(24.28, 34.34, -47.13)
CIE-LCHlch(24.28, 58.31, 306.07°)
OKLaboklab(36.21% 0.0464 -0.1352)
OKLCHoklch(36.21% 0.143 289)
XYZxyz(6.8368, 4.1858, 21.5625)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2882 #6B8228
analogous
#283E82 #3F2882 #6C2882
triadic
#3F2882 #823F28 #28823F
tetradic
#3F2882 #82283E #6B8228 #28826C
square
#3F2882 #82283E #6B8228 #28826C
split-complementary
#3F2882 #826C28 #3E8228
monochromatic
#120B24 #281A53 #3F2882 #5636B1 #7659CC

Accessibility & contrast

On white

11.43
#3F2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2882
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2882#FFFFFF#000000##FFFFFF
##3F28821.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#283E51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f2882;
/* rgb */ color: rgb(63, 40, 130);
/* oklch */ color: oklch(36.2% 0.143 289.0);
Tailwind
colors: {
  custom: {
    50: '#7b64a7',
    500: '#3f2882',
    950: '#000000',
  },
}
SCSS
$custom: #3f2882;
$custom-light: #7b64a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2882",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 255.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36208,
    "c": 0.14293,
    "h": 289
  },
  "luminance": 0.04186
}

Semantic roles & 50–950 ramp

primary
#3F2882
secondary
#99B155
accent
#DC4BB7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3F2882

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

Preview Lab → · Contrast checker → · Palette generator →

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