#3F279A#3F279A

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

Color values

HEX#3F279A
RGBrgb(63, 39, 154)
HSLhsl(253, 60%, 38%)
HSVhsv(253, 75%, 60%)
CMYKcmyk(59.1%, 74.7%, 0%, 39.6%)
CIE-LABlab(26.28, 42.30, -58.75)
CIE-LCHlch(26.28, 72.40, 305.76°)
OKLaboklab(38.31% 0.0425 -0.1692)
OKLCHoklch(38.31% 0.174 284.1)
XYZxyz(8.6064, 4.8404, 31.0464)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F279A #829A27
analogous
#27489A #3F279A #78279A
triadic
#3F279A #9A3F27 #279A3F
tetradic
#3F279A #9A2748 #829A27 #279A78
square
#3F279A #9A2748 #829A27 #279A78
split-complementary
#3F279A #9A7827 #489A27
monochromatic
#170E38 #2B1B69 #3F279A #5333CB #7C64D8

Accessibility & contrast

On white

10.67
#3F279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F279A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F279A#FFFFFF#000000##FFFFFF
##3F279A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#0A475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f279a;
/* rgb */ color: rgb(63, 39, 154);
/* oklch */ color: oklch(38.3% 0.174 284.1);
Tailwind
colors: {
  custom: {
    50: '#7f64b9',
    500: '#3f279a',
    950: '#000000',
  },
}
SCSS
$custom: #3f279a;
$custom-light: #7f64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f279a",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 252.522,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.17449,
    "h": 284.1
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#3F279A
secondary
#AABD5F
accent
#E345C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3F279A

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

Preview Lab → · Contrast checker → · Palette generator →

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