#3F289F#3F289F

#3F289F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.180 H 283.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#3F289F
RGBrgb(63, 40, 159)
HSLhsl(252, 60%, 39%)
HSVhsv(252, 75%, 62%)
CMYKcmyk(60.4%, 74.8%, 0%, 37.6%)
CIE-LABlab(26.95, 43.30, -60.69)
CIE-LCHlch(26.95, 74.55, 305.51°)
OKLaboklab(38.93% 0.0406 -0.1749)
OKLCHoklch(38.93% 0.18 283.1)
XYZxyz(9.0648, 5.0769, 33.2964)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F289F #889F28
analogous
#284D9F #3F289F #7B289F
triadic
#3F289F #9F3F28 #289F3F
tetradic
#3F289F #9F284D #889F28 #289F7B
square
#3F289F #9F284D #889F28 #289F7B
split-complementary
#3F289F #9F7B28 #4D9F28
monochromatic
#180F3D #2C1C6E #3F289F #5437CD #7E68D9

Accessibility & contrast

On white

10.42
#3F289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F289F
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F289F#FFFFFF#000000##FFFFFF
##3F289F1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f289f;
/* rgb */ color: rgb(63, 40, 159);
/* oklch */ color: oklch(38.9% 0.180 283.1);
Tailwind
colors: {
  custom: {
    50: '#8065bc',
    500: '#3f289f',
    950: '#000000',
  },
}
SCSS
$custom: #3f289f;
$custom-light: #8065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f289f",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 251.597,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38935,
    "c": 0.17955,
    "h": 283.1
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

primary
#3F289F
secondary
#AEBF64
accent
#E345C4
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F289F

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

Preview Lab → · Contrast checker → · Palette generator →

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