#3F278D#3F278D

#3F278D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.158 H 286.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3F278D
RGBrgb(63, 39, 141)
HSLhsl(254, 57%, 35%)
HSVhsv(254, 72%, 55%)
CMYKcmyk(55.3%, 72.3%, 0%, 44.7%)
CIE-LABlab(25.05, 38.31, -52.75)
CIE-LCHlch(25.05, 65.19, 305.99°)
OKLaboklab(37.06% 0.0454 -0.1517)
OKLCHoklch(37.06% 0.158 286.7)
XYZxyz(7.5817, 4.4305, 25.6498)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F278D #758D27
analogous
#27428D #3F278D #72278D
triadic
#3F278D #8D3F27 #278D3F
tetradic
#3F278D #8D2742 #758D27 #278D72
square
#3F278D #8D2742 #758D27 #278D72
split-complementary
#3F278D #8D7227 #428D27
monochromatic
#140C2D #2A1A5D #3F278D #5434BD #785CD2

Accessibility & contrast

On white

11.13
#3F278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F278D
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F278D#FFFFFF#000000##FFFFFF
##3F278D1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#1E4257
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f278d;
/* rgb */ color: rgb(63, 39, 141);
/* oklch */ color: oklch(37.1% 0.158 286.7);
Tailwind
colors: {
  custom: {
    50: '#7d63af',
    500: '#3f278d',
    950: '#000000',
  },
}
SCSS
$custom: #3f278d;
$custom-light: #7d63af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f278d",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 254.118,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37062,
    "c": 0.15831,
    "h": 286.7
  },
  "luminance": 0.04431
}

Semantic roles & 50–950 ramp

primary
#3F278D
secondary
#A1B759
accent
#E048BC
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F278D

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

Preview Lab → · Contrast checker → · Palette generator →

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