#3F2892#3F2892

#3F2892 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.163 H 285.4°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3F2892
RGBrgb(63, 40, 146)
HSLhsl(253, 57%, 36%)
HSVhsv(253, 73%, 57%)
CMYKcmyk(56.8%, 72.6%, 0%, 42.7%)
CIE-LABlab(25.71, 39.29, -54.76)
CIE-LCHlch(25.71, 67.40, 305.66°)
OKLaboklab(37.68% 0.0435 -0.1575)
OKLCHoklch(37.68% 0.163 285.4)
XYZxyz(7.9954, 4.6492, 27.6646)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2892 #7B9228
analogous
#284692 #3F2892 #742892
triadic
#3F2892 #923F28 #28923F
tetradic
#3F2892 #922846 #7B9228 #289274
square
#3F2892 #922846 #7B9228 #289274
split-complementary
#3F2892 #927428 #469228
monochromatic
#160E32 #2A1B62 #3F2892 #5435C2 #7A61D4

Accessibility & contrast

On white

10.88
#3F2892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3F2892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2892
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2892#FFFFFF#000000##FFFFFF
##3F28921.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#003A90
Tritanopia (blue-blind)
#18445A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2892;
/* rgb */ color: rgb(63, 40, 146);
/* oklch */ color: oklch(37.7% 0.163 285.4);
Tailwind
colors: {
  custom: {
    50: '#7d64b3',
    500: '#3f2892',
    950: '#000000',
  },
}
SCSS
$custom: #3f2892;
$custom-light: #7d64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2892",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 253.019,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37677,
    "c": 0.16344,
    "h": 285.4
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#3F2892
secondary
#A5B95D
accent
#E048BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F2892

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

Preview Lab → · Contrast checker → · Palette generator →

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