#3F2899#3F2899

#3F2899 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.172 H 284.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#3F2899
RGBrgb(63, 40, 153)
HSLhsl(252, 59%, 38%)
HSVhsv(252, 74%, 60%)
CMYKcmyk(58.8%, 73.9%, 0%, 40%)
CIE-LABlab(26.37, 41.45, -57.98)
CIE-LCHlch(26.37, 71.27, 305.56°)
OKLaboklab(38.35% 0.042 -0.167)
OKLCHoklch(38.35% 0.172 284.1)
XYZxyz(8.5567, 4.8737, 30.6206)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2899 #829928
analogous
#284A99 #3F2899 #772899
triadic
#3F2899 #993F28 #28993F
tetradic
#3F2899 #99284A #829928 #289977
square
#3F2899 #99284A #829928 #289977
split-complementary
#3F2899 #997728 #4A9928
monochromatic
#170F38 #2B1B68 #3F2899 #5335CA #7C65D7

Accessibility & contrast

On white

10.63
#3F2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3F2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2899
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2899#FFFFFF#000000##FFFFFF
##3F28991.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#0C475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2899;
/* rgb */ color: rgb(63, 40, 153);
/* oklch */ color: oklch(38.3% 0.172 284.1);
Tailwind
colors: {
  custom: {
    50: '#7f64b8',
    500: '#3f2899',
    950: '#000000',
  },
}
SCSS
$custom: #3f2899;
$custom-light: #7f64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2899",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 252.212,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.17217,
    "h": 284.1
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#3F2899
secondary
#AABD60
accent
#E246C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2899

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

Preview Lab → · Contrast checker → · Palette generator →

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