#3F2272#3F2272

#3F2272 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.130 H 295.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#3F2272
RGBrgb(63, 34, 114)
HSLhsl(262, 54%, 29%)
HSVhsv(262, 70%, 45%)
CMYKcmyk(44.7%, 70.2%, 0%, 55.3%)
CIE-LABlab(21.64, 33.01, -41.26)
CIE-LCHlch(21.64, 52.83, 308.66°)
OKLaboklab(33.89% 0.0554 -0.1179)
OKLCHoklch(33.89% 0.13 295.2)
XYZxyz(5.6584, 3.4156, 16.2775)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2272 #557222
analogous
#222D72 #3F2272 #672272
triadic
#3F2272 #723F22 #22723F
tetradic
#3F2272 #72222D #557222 #227267
square
#3F2272 #72222D #557222 #227267
split-complementary
#3F2272 #726722 #2D7222
monochromatic
#0D0718 #251443 #3F2272 #5930A1 #7546C8

Accessibility & contrast

On white

12.48
#3F2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2272
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2272#FFFFFF#000000##FFFFFF
##3F22721.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#313547
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f2272;
/* rgb */ color: rgb(63, 34, 114);
/* oklch */ color: oklch(33.9% 0.130 295.2);
Tailwind
colors: {
  custom: {
    50: '#795f9b',
    500: '#3f2272',
    950: '#000000',
  },
}
SCSS
$custom: #3f2272;
$custom-light: #795f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2272",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 261.75,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33887,
    "c": 0.13026,
    "h": 295.2
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#3F2272
secondary
#84A54B
accent
#DD4AA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F2272

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

Preview Lab → · Contrast checker → · Palette generator →

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