#3402FE#3402FE

#3402FE is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 46.6% C 0.302 H 270.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#3402FE
RGBrgb(52, 2, 254)
HSLhsl(252, 99%, 50%)
HSVhsv(252, 99%, 100%)
CMYKcmyk(79.5%, 99.2%, 0%, 0.4%)
CIE-LABlab(33.83, 79.21, -104.70)
CIE-LCHlch(33.83, 131.28, 307.11°)
OKLaboklab(46.63% 0.005 -0.3022)
OKLCHoklch(46.63% 0.302 270.9)
XYZxyz(19.3213, 7.9270, 94.2585)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3402FE #CCFE02
analogous
#024EFE #3402FE #B202FE
triadic
#3402FE #FE3402 #02FE34
tetradic
#3402FE #FE024E #CCFE02 #02FEB2
square
#3402FE #FE024E #CCFE02 #02FEB2
split-complementary
#3402FE #FEB202 #4EFE02
monochromatic
#1B0185 #2701C2 #3402FE #653FFE #967CFE

Accessibility & contrast

On white

8.12
#3402FE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3402FE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3402FE
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3402FE#FFFFFF#000000##FFFFFF
##3402FE1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AFF
Deuteranopia (green-blind)
#0044FA
Tritanopia (blue-blind)
#006A95
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3402fe;
/* rgb */ color: rgb(52, 2, 254);
/* oklch */ color: oklch(46.6% 0.302 270.9);
Tailwind
colors: {
  custom: {
    50: '#925fff',
    500: '#3402fe',
    950: '#000000',
  },
}
SCSS
$custom: #3402fe;
$custom-light: #925fff;
$custom-dark: #000000;
JSON
{
  "hex": "#3402fe",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 254
  },
  "hsl": {
    "h": 251.905,
    "s": 99.213,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46629,
    "c": 0.30226,
    "h": 270.9
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#3402FE
secondary
#D0E676
accent
#FF29D4
background
#FAF6FF
surface
#F4EBFF
border
#CEC6D7
text
#100618
muted
#7F7A86

Preview Lab

Preview with #3402FE

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

Preview Lab → · Contrast checker → · Palette generator →

#3402FE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva