#3F27A4#3F27A4

#3F27A4 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.187 H 282.4°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#3F27A4
RGBrgb(63, 39, 164)
HSLhsl(252, 62%, 40%)
HSVhsv(252, 76%, 64%)
CMYKcmyk(61.6%, 76.2%, 0%, 35.7%)
CIE-LABlab(27.26, 45.35, -63.21)
CIE-LCHlch(27.26, 77.80, 305.66°)
OKLaboklab(39.3% 0.04 -0.1823)
OKLCHoklch(39.3% 0.187 282.4)
XYZxyz(9.4742, 5.1875, 35.6168)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F27A4 #8CA427
analogous
#274EA4 #3F27A4 #7E27A4
triadic
#3F27A4 #A43F27 #27A43F
tetradic
#3F27A4 #A4274E #8CA427 #27A47E
square
#3F27A4 #A4274E #8CA427 #27A47E
split-complementary
#3F27A4 #A47E27 #4EA427
monochromatic
#190F41 #2C1B73 #3F27A4 #5538D0 #806ADC

Accessibility & contrast

On white

10.31
#3F27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3F27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F27A4
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F27A4#FFFFFF#000000##FFFFFF
##3F27A41.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f27a4;
/* rgb */ color: rgb(63, 39, 164);
/* oklch */ color: oklch(39.3% 0.187 282.4);
Tailwind
colors: {
  custom: {
    50: '#8164c0',
    500: '#3f27a4',
    950: '#000000',
  },
}
SCSS
$custom: #3f27a4;
$custom-light: #8164c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f27a4",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 251.52,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.18662,
    "h": 282.4
  },
  "luminance": 0.05188
}

Semantic roles & 50–950 ramp

primary
#3F27A4
secondary
#B0C265
accent
#E543C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #3F27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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