#3F27A2#3F27A2

#3F27A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.184 H 282.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#3F27A2
RGBrgb(63, 39, 162)
HSLhsl(252, 61%, 39%)
HSVhsv(252, 76%, 64%)
CMYKcmyk(61.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(27.06, 44.75, -62.33)
CIE-LCHlch(27.06, 76.73, 305.67°)
OKLaboklab(39.1% 0.0405 -0.1797)
OKLCHoklch(39.1% 0.184 282.7)
XYZxyz(9.2950, 5.1158, 34.6731)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F27A2 #8AA227
analogous
#274DA2 #3F27A2 #7D27A2
triadic
#3F27A2 #A23F27 #27A23F
tetradic
#3F27A2 #A2274D #8AA227 #27A27D
square
#3F27A2 #A2274D #8AA227 #27A27D
split-complementary
#3F27A2 #A27D27 #4DA227
monochromatic
#190F3F #2C1B71 #3F27A2 #5537CF #7F69DB

Accessibility & contrast

On white

10.38
#3F27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F27A2
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F27A2#FFFFFF#000000##FFFFFF
##3F27A21.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f27a2;
/* rgb */ color: rgb(63, 39, 162);
/* oklch */ color: oklch(39.1% 0.184 282.7);
Tailwind
colors: {
  custom: {
    50: '#8064bf',
    500: '#3f27a2',
    950: '#000000',
  },
}
SCSS
$custom: #3f27a2;
$custom-light: #8064bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f27a2",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 251.707,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39102,
    "c": 0.18421,
    "h": 282.7
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#3F27A2
secondary
#AFC164
accent
#E443C5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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