#3F2155#3F2155

#3F2155 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.094 H 308.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#3F2155
RGBrgb(63, 33, 85)
HSLhsl(275, 44%, 23%)
HSVhsv(275, 61%, 33%)
CMYKcmyk(25.9%, 61.2%, 0%, 66.7%)
CIE-LABlab(19.23, 25.40, -26.10)
CIE-LCHlch(19.23, 36.41, 314.22°)
OKLaboklab(31.44% 0.0585 -0.0734)
OKLCHoklch(31.44% 0.094 308.6)
XYZxyz(4.2331, 2.8004, 8.9101)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2155 #375521
analogous
#252155 #3F2155 #552151
triadic
#3F2155 #553F21 #21553F
tetradic
#3F2155 #552521 #375521 #215155
square
#3F2155 #552521 #375521 #215155
split-complementary
#3F2155 #515521 #215525
monochromatic
#100916 #1E1029 #3F2155 #603281 #8043AD

Accessibility & contrast

On white

13.46
#3F2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2155
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2155#FFFFFF#000000##FFFFFF
##3F21551.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D57
Deuteranopia (green-blind)
#1A2F54
Tritanopia (blue-blind)
#3C2B37
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f2155;
/* rgb */ color: rgb(63, 33, 85);
/* oklch */ color: oklch(31.4% 0.094 308.6);
Tailwind
colors: {
  custom: {
    50: '#765e85',
    500: '#3f2155',
    950: '#000000',
  },
}
SCSS
$custom: #3f2155;
$custom-light: #765e85;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2155",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 274.615,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31442,
    "c": 0.09385,
    "h": 308.6
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#3F2155
secondary
#648949
accent
#D4548A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #3F2155

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

Preview Lab → · Contrast checker → · Palette generator →

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