#3F299F#3F299F

#3F299F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.178 H 282.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#3F299F
RGBrgb(63, 41, 159)
HSLhsl(251, 59%, 39%)
HSVhsv(251, 74%, 62%)
CMYKcmyk(60.4%, 74.2%, 0%, 37.6%)
CIE-LABlab(27.14, 42.76, -60.37)
CIE-LCHlch(27.14, 73.98, 305.31°)
OKLaboklab(39.07% 0.0398 -0.174)
OKLCHoklch(39.07% 0.178 282.9)
XYZxyz(9.0989, 5.1452, 33.3078)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F299F #899F29
analogous
#294E9F #3F299F #7A299F
triadic
#3F299F #9F3F29 #299F3F
tetradic
#3F299F #9F294E #899F29 #299F7A
square
#3F299F #9F294E #899F29 #299F7A
split-complementary
#3F299F #9F7A29 #4E9F29
monochromatic
#18103E #2C1C6E #3F299F #5539CC #7E6AD9

Accessibility & contrast

On white

10.35
#3F299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3F299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F299F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F299F#FFFFFF#000000##FFFFFF
##3F299F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f299f;
/* rgb */ color: rgb(63, 41, 159);
/* oklch */ color: oklch(39.1% 0.178 282.9);
Tailwind
colors: {
  custom: {
    50: '#8065bc',
    500: '#3f299f',
    950: '#000000',
  },
}
SCSS
$custom: #3f299f;
$custom-light: #8065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f299f",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 251.186,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39071,
    "c": 0.17849,
    "h": 282.9
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#3F299F
secondary
#AEBF65
accent
#E246C5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F299F

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

Preview Lab → · Contrast checker → · Palette generator →

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