#3F299D#3F299D

#3F299D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.176 H 283.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#3F299D
RGBrgb(63, 41, 157)
HSLhsl(251, 59%, 39%)
HSVhsv(251, 74%, 62%)
CMYKcmyk(59.9%, 73.9%, 0%, 38.4%)
CIE-LABlab(26.95, 42.14, -59.47)
CIE-LCHlch(26.95, 72.89, 305.32°)
OKLaboklab(38.88% 0.0403 -0.1714)
OKLCHoklch(38.88% 0.176 283.2)
XYZxyz(8.9268, 5.0764, 32.4012)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F299D #879D29
analogous
#294D9D #3F299D #79299D
triadic
#3F299D #9D3F29 #299D3F
tetradic
#3F299D #9D294D #879D29 #299D79
square
#3F299D #9D294D #879D29 #299D79
split-complementary
#3F299D #9D7929 #4D9D29
monochromatic
#18103C #2C1C6C #3F299D #5438CB #7E69D8

Accessibility & contrast

On white

10.42
#3F299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F299D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F299D#FFFFFF#000000##FFFFFF
##3F299D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#014960
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f299d;
/* rgb */ color: rgb(63, 41, 157);
/* oklch */ color: oklch(38.9% 0.176 283.2);
Tailwind
colors: {
  custom: {
    50: '#7f65bb',
    500: '#3f299d',
    950: '#000000',
  },
}
SCSS
$custom: #3f299d;
$custom-light: #7f65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f299d",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 251.379,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38875,
    "c": 0.17603,
    "h": 283.2
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#3F299D
secondary
#ADBE64
accent
#E246C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F299D

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

Preview Lab → · Contrast checker → · Palette generator →

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