#3F2277#3F2277

#3F2277 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.137 H 293.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#3F2277
RGBrgb(63, 34, 119)
HSLhsl(260, 56%, 30%)
HSVhsv(260, 71%, 47%)
CMYKcmyk(47.1%, 71.4%, 0%, 53.3%)
CIE-LABlab(22.06, 34.48, -43.77)
CIE-LCHlch(22.06, 55.72, 308.23°)
OKLaboklab(34.32% 0.0546 -0.1253)
OKLCHoklch(34.32% 0.137 293.5)
XYZxyz(5.9508, 3.5326, 17.8175)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2277 #5A7722
analogous
#222F77 #3F2277 #6A2277
triadic
#3F2277 #773F22 #22773F
tetradic
#3F2277 #77222F #5A7722 #22776A
square
#3F2277 #77222F #5A7722 #22776A
split-complementary
#3F2277 #776A22 #2F7722
monochromatic
#0D0718 #261447 #3F2277 #5830A7 #7549CB

Accessibility & contrast

On white

12.31
#3F2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2277
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2277#FFFFFF#000000##FFFFFF
##3F22771.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#2F3749
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f2277;
/* rgb */ color: rgb(63, 34, 119);
/* oklch */ color: oklch(34.3% 0.137 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a5f9f',
    500: '#3f2277',
    950: '#000000',
  },
}
SCSS
$custom: #3f2277;
$custom-light: #7a5f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2277",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 260.471,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.34324,
    "c": 0.13666,
    "h": 293.5
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#3F2277
secondary
#8AAA4B
accent
#DF49AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #3F2277

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

Preview Lab → · Contrast checker → · Palette generator →

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