#340FC7#340FC7

#340FC7 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 40.3% C 0.244 H 275.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#340FC7
RGBrgb(52, 15, 199)
HSLhsl(252, 86%, 42%)
HSVhsv(252, 92%, 78%)
CMYKcmyk(73.9%, 92.5%, 0%, 22%)
CIE-LABlab(27.28, 63.53, -84.08)
CIE-LCHlch(27.28, 105.38, 307.07°)
OKLaboklab(40.25% 0.0213 -0.2428)
OKLCHoklch(40.25% 0.244 275)
XYZxyz(11.8924, 5.1940, 54.3976)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340FC7 #A2C70F
analogous
#0F46C7 #340FC7 #900FC7
triadic
#340FC7 #C7340F #0FC734
tetradic
#340FC7 #C70F46 #A2C70F #0FC790
square
#340FC7 #C70F46 #A2C70F #0FC790
split-complementary
#340FC7 #C7900F #46C70F
monochromatic
#160655 #250B8E #340FC7 #4D25EF #7C5EF3

Accessibility & contrast

On white

10.30
#340FC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#340FC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340FC7
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340FC7#FFFFFF#000000##FFFFFF
##340FC71.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048CB
Deuteranopia (green-blind)
#0038C4
Tritanopia (blue-blind)
#005375
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #340fc7;
/* rgb */ color: rgb(52, 15, 199);
/* oklch */ color: oklch(40.3% 0.244 275.0);
Tailwind
colors: {
  custom: {
    50: '#855cda',
    500: '#340fc7',
    950: '#000000',
  },
}
SCSS
$custom: #340fc7;
$custom-light: #855cda;
$custom-dark: #000000;
JSON
{
  "hex": "#340fc7",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 199
  },
  "hsl": {
    "h": 252.065,
    "s": 85.981,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40251,
    "c": 0.24369,
    "h": 275
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#340FC7
secondary
#BED65B
accent
#FC2CD2
background
#F9F5FD
surface
#F1E9FB
border
#CBC5D4
text
#0D0515
muted
#7E7983

Preview Lab

Preview with #340FC7

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

Preview Lab → · Contrast checker → · Palette generator →

#340FC7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva