#645AAF#645AAF

#645AAF is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.131 H 286.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#645AAF
RGBrgb(100, 90, 175)
HSLhsl(247, 35%, 52%)
HSVhsv(247, 49%, 69%)
CMYKcmyk(42.9%, 48.6%, 0%, 31.4%)
CIE-LABlab(42.94, 25.71, -44.21)
CIE-LCHlch(42.94, 51.14, 300.18°)
OKLaboklab(51.84% 0.0366 -0.1253)
OKLCHoklch(51.84% 0.131 286.3)
XYZxyz(16.6474, 13.1162, 42.2037)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AAF #A5AF5A
analogous
#5A7BAF #645AAF #8F5AAF
triadic
#645AAF #AF645A #5AAF64
tetradic
#645AAF #AF5A7B #A5AF5A #5AAF8F
square
#645AAF #AF5A7B #A5AF5A #5AAF8F
split-complementary
#645AAF #AF8F5A #7BAF5A
monochromatic
#342F60 #4B4389 #645AAF #8B83C3 #B1ACD7

Accessibility & contrast

On white

5.80
#645AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#645AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AAF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AAF#FFFFFF#000000##FFFFFF
##645AAF1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B2
Deuteranopia (green-blind)
#3663AD
Tritanopia (blue-blind)
#4E6B7C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #645aaf;
/* rgb */ color: rgb(100, 90, 175);
/* oklch */ color: oklch(51.8% 0.131 286.3);
Tailwind
colors: {
  custom: {
    50: '#9488c7',
    500: '#645aaf',
    950: '#000000',
  },
}
SCSS
$custom: #645aaf;
$custom-light: #9488c7;
$custom-dark: #000000;
JSON
{
  "hex": "#645aaf",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 247.059,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51836,
    "c": 0.13052,
    "h": 286.3
  },
  "luminance": 0.13117
}

Semantic roles & 50–950 ramp

primary
#645AAF
secondary
#C1C5A0
accent
#CB5DBE
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #645AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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