#645BD5#645BD5

#645BD5 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.6% C 0.181 H 281.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#645BD5
RGBrgb(100, 91, 213)
HSLhsl(244, 59%, 60%)
HSVhsv(244, 57%, 84%)
CMYKcmyk(53.1%, 57.3%, 0%, 16.5%)
CIE-LABlab(45.63, 36.66, -61.91)
CIE-LCHlch(45.63, 71.95, 300.63°)
OKLaboklab(54.62% 0.0374 -0.1773)
OKLCHoklch(54.62% 0.181 281.9)
XYZxyz(21.0032, 14.9944, 64.7254)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BD5 #CCD55B
analogous
#5B8FD5 #645BD5 #A15BD5
triadic
#645BD5 #D5645B #5BD564
tetradic
#645BD5 #D55B8F #CCD55B #5BD5A1
square
#645BD5 #D55B8F #CCD55B #5BD5A1
split-complementary
#645BD5 #D5A15B #8FD55B
monochromatic
#2D2591 #3C32C1 #645BD5 #928CE1 #C0BCEE

Accessibility & contrast

On white

5.25
#645BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#645BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BD5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BD5#FFFFFF#000000##FFFFFF
##645BD51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#33778F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #645bd5;
/* rgb */ color: rgb(100, 91, 213);
/* oklch */ color: oklch(54.6% 0.181 281.9);
Tailwind
colors: {
  custom: {
    50: '#998ae3',
    500: '#645bd5',
    950: '#000000',
  },
}
SCSS
$custom: #645bd5;
$custom-light: #998ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#645bd5",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 213
  },
  "hsl": {
    "h": 244.426,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54624,
    "c": 0.1812,
    "h": 281.9
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#645BD5
secondary
#DADEAE
accent
#E245D7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0B15
muted
#7E7C84

Preview Lab

Preview with #645BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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