#6340BF#6340BF

#6340BF is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.188 H 290.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6340BF
RGBrgb(99, 64, 191)
HSLhsl(257, 50%, 50%)
HSVhsv(257, 66%, 75%)
CMYKcmyk(48.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.99, 45.55, -61.59)
CIE-LCHlch(37.99, 76.60, 306.48°)
OKLaboklab(48.51% 0.0652 -0.1765)
OKLCHoklch(48.51% 0.188 290.3)
XYZxyz(16.3803, 10.0804, 50.3627)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340BF #9CBF40
analogous
#405DBF #6340BF #A240BF
triadic
#6340BF #BF6340 #40BF63
tetradic
#6340BF #BF405D #9CBF40 #40BFA2
square
#6340BF #BF405D #9CBF40 #40BFA2
split-complementary
#6340BF #BFA240 #5DBF40
monochromatic
#332163 #4B3191 #6340BF #886ECE #AE9CDE

Accessibility & contrast

On white

6.96
#6340BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6340BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340BF
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340BF#FFFFFF#000000##FFFFFF
##6340BF1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#455F7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6340bf;
/* rgb */ color: rgb(99, 64, 191);
/* oklch */ color: oklch(48.5% 0.188 290.3);
Tailwind
colors: {
  custom: {
    50: '#9777d3',
    500: '#6340bf',
    950: '#000000',
  },
}
SCSS
$custom: #6340bf;
$custom-light: #9777d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6340bf",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 256.535,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48512,
    "c": 0.18812,
    "h": 290.3
  },
  "luminance": 0.10081
}

Semantic roles & 50–950 ramp

primary
#6340BF
secondary
#BACA91
accent
#D94EB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6340BF

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

Preview Lab → · Contrast checker → · Palette generator →

#6340BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva