#3F27AB#3F27AB

#3F27AB is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.195 H 281.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#3F27AB
RGBrgb(63, 39, 171)
HSLhsl(251, 63%, 41%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(63.2%, 77.2%, 0%, 32.9%)
CIE-LABlab(27.97, 47.47, -66.27)
CIE-LCHlch(27.97, 81.52, 305.62°)
OKLaboklab(40.02% 0.0382 -0.1912)
OKLCHoklch(40.02% 0.195 281.3)
XYZxyz(10.1238, 5.4473, 39.0381)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F27AB #93AB27
analogous
#2751AB #3F27AB #8127AB
triadic
#3F27AB #AB3F27 #27AB3F
tetradic
#3F27AB #AB2751 #93AB27 #27AB81
square
#3F27AB #AB2751 #93AB27 #27AB81
split-complementary
#3F27AB #AB8127 #51AB27
monochromatic
#1A1047 #2D1C79 #3F27AB #583DD3 #836EDE

Accessibility & contrast

On white

10.05
#3F27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3F27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F27AB
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F27AB#FFFFFF#000000##FFFFFF
##3F27AB1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f27ab;
/* rgb */ color: rgb(63, 39, 171);
/* oklch */ color: oklch(40.0% 0.195 281.3);
Tailwind
colors: {
  custom: {
    50: '#8265c5',
    500: '#3f27ab',
    950: '#000000',
  },
}
SCSS
$custom: #3f27ab;
$custom-light: #8265c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f27ab",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 250.909,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.19496,
    "h": 281.3
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#3F27AB
secondary
#B4C569
accent
#E642C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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