#645DB4#645DB4

#645DB4 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.133 H 284.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#645DB4
RGBrgb(100, 93, 180)
HSLhsl(245, 37%, 54%)
HSVhsv(245, 48%, 71%)
CMYKcmyk(44.4%, 48.3%, 0%, 29.4%)
CIE-LABlab(43.99, 25.35, -45.46)
CIE-LCHlch(43.99, 52.05, 299.15°)
OKLaboklab(52.72% 0.0334 -0.1289)
OKLCHoklch(52.72% 0.133 284.5)
XYZxyz(17.4057, 13.8326, 44.9240)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DB4 #ADB45D
analogous
#5D81B4 #645DB4 #8F5DB4
triadic
#645DB4 #B4645D #5DB464
tetradic
#645DB4 #B45D81 #ADB45D #5DB48F
square
#645DB4 #B45D81 #ADB45D #5DB48F
split-complementary
#645DB4 #B48F5D #81B45D
monochromatic
#343067 #494391 #645DB4 #8C87C7 #B4B1DB

Accessibility & contrast

On white

5.58
#645DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#645DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DB4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DB4#FFFFFF#000000##FFFFFF
##645DB41.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396BB7
Deuteranopia (green-blind)
#3665B2
Tritanopia (blue-blind)
#4B6F80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #645db4;
/* rgb */ color: rgb(100, 93, 180);
/* oklch */ color: oklch(52.7% 0.133 284.5);
Tailwind
colors: {
  custom: {
    50: '#958bcb',
    500: '#645db4',
    950: '#000000',
  },
}
SCSS
$custom: #645db4;
$custom-light: #958bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#645db4",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 244.828,
    "s": 36.709,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52724,
    "c": 0.13317,
    "h": 284.5
  },
  "luminance": 0.13833
}

Semantic roles & 50–950 ramp

primary
#645DB4
secondary
#C6C9A4
accent
#CD5BC4
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0E0C13
muted
#7E7D82

Preview Lab

Preview with #645DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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