#3F2893#3F2893

#3F2893 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.165 H 285.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#3F2893
RGBrgb(63, 40, 147)
HSLhsl(253, 57%, 37%)
HSVhsv(253, 73%, 58%)
CMYKcmyk(57.1%, 72.8%, 0%, 42.4%)
CIE-LABlab(25.80, 39.60, -55.22)
CIE-LCHlch(25.80, 67.95, 305.65°)
OKLaboklab(37.77% 0.0433 -0.1589)
OKLCHoklch(37.77% 0.165 285.2)
XYZxyz(8.0736, 4.6805, 28.0761)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2893 #7C9328
analogous
#284793 #3F2893 #752893
triadic
#3F2893 #933F28 #28933F
tetradic
#3F2893 #932847 #7C9328 #289375
square
#3F2893 #932847 #7C9328 #289375
split-complementary
#3F2893 #937528 #479328
monochromatic
#160E33 #2A1B63 #3F2893 #5435C3 #7A61D4

Accessibility & contrast

On white

10.85
#3F2893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3F2893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2893
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2893#FFFFFF#000000##FFFFFF
##3F28931.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003A91
Tritanopia (blue-blind)
#17455B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2893;
/* rgb */ color: rgb(63, 40, 147);
/* oklch */ color: oklch(37.8% 0.165 285.2);
Tailwind
colors: {
  custom: {
    50: '#7e64b4',
    500: '#3f2893',
    950: '#000000',
  },
}
SCSS
$custom: #3f2893;
$custom-light: #7e64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2893",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 252.897,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.1647,
    "h": 285.2
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#3F2893
secondary
#A6BA5D
accent
#E047C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F2893

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

Preview Lab → · Contrast checker → · Palette generator →

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