#3906FF#3906FF

#3906FF is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 47.1% C 0.301 H 272.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#3906FF
RGBrgb(57, 6, 255)
HSLhsl(252, 100%, 51%)
HSVhsv(252, 98%, 100%)
CMYKcmyk(77.6%, 97.6%, 0%, 0%)
CIE-LABlab(34.43, 79.00, -104.25)
CIE-LCHlch(34.43, 130.80, 307.16°)
OKLaboklab(47.14% 0.0107 -0.3009)
OKLCHoklch(47.14% 0.301 272)
XYZxyz(19.7964, 8.2179, 95.1312)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3906FF #CCFF06
analogous
#064FFF #3906FF #B506FF
triadic
#3906FF #FF3906 #06FF39
tetradic
#3906FF #FF064F #CCFF06 #06FFB5
square
#3906FF #FF064F #CCFF06 #06FFB5
split-complementary
#3906FF #FFB506 #4FFF06
monochromatic
#1C008B #2900C8 #3906FF #6A43FF #9A80FF

Accessibility & contrast

On white

7.94
#3906FF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3906FF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3906FF
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3906FF#FFFFFF#000000##FFFFFF
##3906FF1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BFF
Deuteranopia (green-blind)
#0045FB
Tritanopia (blue-blind)
#006B96
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3906ff;
/* rgb */ color: rgb(57, 6, 255);
/* oklch */ color: oklch(47.1% 0.301 272.0);
Tailwind
colors: {
  custom: {
    50: '#9361ff',
    500: '#3906ff',
    950: '#000000',
  },
}
SCSS
$custom: #3906ff;
$custom-light: #9361ff;
$custom-dark: #000000;
JSON
{
  "hex": "#3906ff",
  "rgb": {
    "r": 57,
    "g": 6,
    "b": 255
  },
  "hsl": {
    "h": 252.289,
    "s": 100,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47144,
    "c": 0.30111,
    "h": 272
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#3906FF
secondary
#D1E779
accent
#FF29D3
background
#FAF6FF
surface
#F4EBFF
border
#CEC6D7
text
#100618
muted
#7F7A86

Preview Lab

Preview with #3906FF

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

Preview Lab → · Contrast checker → · Palette generator →

#3906FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva