#3F279D#3F279D

#3F279D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.178 H 283.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3F279D
RGBrgb(63, 39, 157)
HSLhsl(252, 60%, 38%)
HSVhsv(252, 75%, 62%)
CMYKcmyk(59.9%, 75.2%, 0%, 38.4%)
CIE-LABlab(26.57, 43.22, -60.10)
CIE-LCHlch(26.57, 74.03, 305.72°)
OKLaboklab(38.6% 0.0418 -0.1732)
OKLCHoklch(38.6% 0.178 283.6)
XYZxyz(8.8593, 4.9415, 32.3787)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F279D #859D27
analogous
#274A9D #3F279D #7A279D
triadic
#3F279D #9D3F27 #279D3F
tetradic
#3F279D #9D274A #859D27 #279D7A
square
#3F279D #9D274A #859D27 #279D7A
split-complementary
#3F279D #9D7A27 #4A9D27
monochromatic
#180F3B #2B1B6C #3F279D #5335CD #7D66D9

Accessibility & contrast

On white

10.56
#3F279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3F279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F279D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F279D#FFFFFF#000000##FFFFFF
##3F279D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#024860
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f279d;
/* rgb */ color: rgb(63, 39, 157);
/* oklch */ color: oklch(38.6% 0.178 283.6);
Tailwind
colors: {
  custom: {
    50: '#8064bb',
    500: '#3f279d',
    950: '#000000',
  },
}
SCSS
$custom: #3f279d;
$custom-light: #8064bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f279d",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 252.203,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38604,
    "c": 0.17816,
    "h": 283.6
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#3F279D
secondary
#ACBF61
accent
#E344C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F279D

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

Preview Lab → · Contrast checker → · Palette generator →

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