#3F278F#3F278F

#3F278F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.161 H 286.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#3F278F
RGBrgb(63, 39, 143)
HSLhsl(254, 57%, 36%)
HSVhsv(254, 73%, 56%)
CMYKcmyk(55.9%, 72.7%, 0%, 43.9%)
CIE-LABlab(25.23, 38.93, -53.69)
CIE-LCHlch(25.23, 66.32, 305.94°)
OKLaboklab(37.25% 0.045 -0.1544)
OKLCHoklch(37.25% 0.161 286.2)
XYZxyz(7.7319, 4.4905, 26.4406)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F278F #778F27
analogous
#27438F #3F278F #73278F
triadic
#3F278F #8F3F27 #278F3F
tetradic
#3F278F #8F2743 #778F27 #278F73
square
#3F278F #8F2743 #778F27 #278F73
split-complementary
#3F278F #8F7327 #438F27
monochromatic
#150D2F #2A1A5F #3F278F #5434BF #795DD3

Accessibility & contrast

On white

11.06
#3F278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3F278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F278F
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F278F#FFFFFF#000000##FFFFFF
##3F278F1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#1C4358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f278f;
/* rgb */ color: rgb(63, 39, 143);
/* oklch */ color: oklch(37.3% 0.161 286.2);
Tailwind
colors: {
  custom: {
    50: '#7d63b1',
    500: '#3f278f',
    950: '#000000',
  },
}
SCSS
$custom: #3f278f;
$custom-light: #7d63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f278f",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 253.846,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3725,
    "c": 0.16083,
    "h": 286.2
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#3F278F
secondary
#A2B85A
accent
#E047BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F278F

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

Preview Lab → · Contrast checker → · Palette generator →

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