#3F255F#3F255F

#3F255F is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.9% C 0.100 H 301.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#3F255F
RGBrgb(63, 37, 95)
HSLhsl(267, 44%, 26%)
HSVhsv(267, 61%, 37%)
CMYKcmyk(33.7%, 61.1%, 0%, 62.7%)
CIE-LABlab(20.85, 25.67, -30.15)
CIE-LCHlch(20.85, 39.60, 310.41°)
OKLaboklab(32.85% 0.0529 -0.0853)
OKLCHoklch(32.85% 0.1 301.8)
XYZxyz(4.7765, 3.2061, 11.1915)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F255F #455F25
analogous
#25285F #3F255F #5C255F
triadic
#3F255F #5F3F25 #255F3F
tetradic
#3F255F #5F2528 #455F25 #255F5C
square
#3F255F #5F2528 #455F25 #255F5C
split-complementary
#3F255F #5F5C25 #285F25
monochromatic
#0F0916 #221433 #3F255F #5C368B #7947B7

Accessibility & contrast

On white

12.80
#3F255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F255F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F255F#FFFFFF#000000##FFFFFF
##3F255F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3261
Deuteranopia (green-blind)
#16325E
Tritanopia (blue-blind)
#39313E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f255f;
/* rgb */ color: rgb(63, 37, 95);
/* oklch */ color: oklch(32.9% 0.100 301.8);
Tailwind
colors: {
  custom: {
    50: '#76618d',
    500: '#3f255f',
    950: '#000000',
  },
}
SCSS
$custom: #3f255f;
$custom-light: #76618d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f255f",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 266.897,
    "s": 43.939,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32854,
    "c": 0.10033,
    "h": 301.8
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#3F255F
secondary
#73924D
accent
#D4549A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #3F255F

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

Preview Lab → · Contrast checker → · Palette generator →

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