#3F2298#3F2298

#3F2298 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.177 H 285.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3F2298
RGBrgb(63, 34, 152)
HSLhsl(255, 63%, 36%)
HSVhsv(255, 78%, 60%)
CMYKcmyk(58.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(25.16, 44.31, -59.36)
CIE-LCHlch(25.16, 74.07, 306.74°)
OKLaboklab(37.46% 0.0468 -0.171)
OKLCHoklch(37.46% 0.177 285.3)
XYZxyz(8.2877, 4.4673, 30.1252)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2298 #7B9822
analogous
#224098 #3F2298 #7A2298
triadic
#3F2298 #983F22 #22983F
tetradic
#3F2298 #982240 #7B9822 #22987A
square
#3F2298 #982240 #7B9822 #22987A
split-complementary
#3F2298 #987A22 #409822
monochromatic
#160C34 #2A1766 #3F2298 #542DCA #7A5ADA

Accessibility & contrast

On white

11.09
#3F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2298
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2298#FFFFFF#000000##FFFFFF
##3F22981.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#10445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2298;
/* rgb */ color: rgb(63, 34, 152);
/* oklch */ color: oklch(37.5% 0.177 285.3);
Tailwind
colors: {
  custom: {
    50: '#7f61b7',
    500: '#3f2298',
    950: '#000000',
  },
}
SCSS
$custom: #3f2298;
$custom-light: #7f61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2298",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 254.746,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37464,
    "c": 0.17725,
    "h": 285.3
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#3F2298
secondary
#A5BE57
accent
#E641BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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