#3F2152#3F2152

#3F2152 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.2% C 0.090 H 310.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3F2152
RGBrgb(63, 33, 82)
HSLhsl(277, 43%, 23%)
HSVhsv(277, 60%, 32%)
CMYKcmyk(23.2%, 59.8%, 0%, 67.8%)
CIE-LABlab(19.03, 24.60, -24.39)
CIE-LCHlch(19.03, 34.64, 315.25°)
OKLaboklab(31.23% 0.0584 -0.0684)
OKLCHoklch(31.23% 0.09 310.5)
XYZxyz(4.1165, 2.7537, 8.2957)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2152 #345221
analogous
#272152 #3F2152 #52214C
triadic
#3F2152 #523F21 #21523F
tetradic
#3F2152 #522721 #345221 #214C52
square
#3F2152 #522721 #345221 #214C52
split-complementary
#3F2152 #4C5221 #215227
monochromatic
#110916 #1D0F26 #3F2152 #61337E #8244A9

Accessibility & contrast

On white

13.54
#3F2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3F2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2152
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2152#FFFFFF#000000##FFFFFF
##3F21521.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#1D2F51
Tritanopia (blue-blind)
#3D2A36
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f2152;
/* rgb */ color: rgb(63, 33, 82);
/* oklch */ color: oklch(31.2% 0.090 310.5);
Tailwind
colors: {
  custom: {
    50: '#765d83',
    500: '#3f2152',
    950: '#000000',
  },
}
SCSS
$custom: #3f2152;
$custom-light: #765d83;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2152",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 276.735,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31234,
    "c": 0.0899,
    "h": 310.5
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#3F2152
secondary
#608649
accent
#D25586
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3F2152

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

Preview Lab → · Contrast checker → · Palette generator →

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