#645DB8#645DB8

#645DB8 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.0% C 0.139 H 284.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#645DB8
RGBrgb(100, 93, 184)
HSLhsl(245, 39%, 54%)
HSVhsv(245, 49%, 72%)
CMYKcmyk(45.7%, 49.5%, 0%, 27.8%)
CIE-LABlab(44.23, 26.55, -47.41)
CIE-LCHlch(44.23, 54.34, 299.25°)
OKLaboklab(52.98% 0.0338 -0.1347)
OKLCHoklch(52.98% 0.139 284.1)
XYZxyz(17.8191, 13.9979, 47.1011)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DB8 #B1B85D
analogous
#5D84B8 #645DB8 #925DB8
triadic
#645DB8 #B8645D #5DB864
tetradic
#645DB8 #B85D84 #B1B85D #5DB892
square
#645DB8 #B85D84 #B1B85D #5DB892
split-complementary
#645DB8 #B8925D #84B85D
monochromatic
#342F6B #484296 #645DB8 #8D88CB #B5B2DD

Accessibility & contrast

On white

5.53
#645DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#645DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DB8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DB8#FFFFFF#000000##FFFFFF
##645DB81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366BBB
Deuteranopia (green-blind)
#3266B6
Tritanopia (blue-blind)
#497082
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645db8;
/* rgb */ color: rgb(100, 93, 184);
/* oklch */ color: oklch(53.0% 0.139 284.1);
Tailwind
colors: {
  custom: {
    50: '#958bce',
    500: '#645db8',
    950: '#000000',
  },
}
SCSS
$custom: #645db8;
$custom-light: #958bce;
$custom-dark: #000000;
JSON
{
  "hex": "#645db8",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 244.615,
    "s": 39.056,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52981,
    "c": 0.13885,
    "h": 284.1
  },
  "luminance": 0.13999
}

Semantic roles & 50–950 ramp

primary
#645DB8
secondary
#C9CCA5
accent
#CF59C6
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0E0C13
muted
#7E7D82

Preview Lab

Preview with #645DB8

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

Preview Lab → · Contrast checker → · Palette generator →

#645DB8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva