#645DD4#645DD4

#645DD4 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.177 H 281.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#645DD4
RGBrgb(100, 93, 212)
HSLhsl(244, 58%, 60%)
HSVhsv(244, 56%, 83%)
CMYKcmyk(52.8%, 56.1%, 0%, 16.9%)
CIE-LABlab(46.03, 35.14, -60.69)
CIE-LCHlch(46.03, 70.13, 300.07°)
OKLaboklab(54.9% 0.0353 -0.1737)
OKLCHoklch(54.9% 0.177 281.5)
XYZxyz(21.0499, 15.2903, 64.1167)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DD4 #CDD45D
analogous
#5D92D4 #645DD4 #9F5DD4
triadic
#645DD4 #D4645D #5DD464
tetradic
#645DD4 #D45D92 #CDD45D #5DD49F
square
#645DD4 #D45D92 #CDD45D #5DD49F
split-complementary
#645DD4 #D49F5D #92D45D
monochromatic
#2D2690 #3B33C1 #645DD4 #928DE1 #C1BEEE

Accessibility & contrast

On white

5.17
#645DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#645DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DD4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DD4#FFFFFF#000000##FFFFFF
##645DD41.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D8
Deuteranopia (green-blind)
#0069D2
Tritanopia (blue-blind)
#34788F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #645dd4;
/* rgb */ color: rgb(100, 93, 212);
/* oklch */ color: oklch(54.9% 0.177 281.5);
Tailwind
colors: {
  custom: {
    50: '#998be2',
    500: '#645dd4',
    950: '#000000',
  },
}
SCSS
$custom: #645dd4;
$custom-light: #998be2;
$custom-dark: #000000;
JSON
{
  "hex": "#645dd4",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 212
  },
  "hsl": {
    "h": 243.529,
    "s": 58.049,
    "l": 59.804
  },
  "oklch": {
    "l": 0.549,
    "c": 0.17724,
    "h": 281.5
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#645DD4
secondary
#DBDDAF
accent
#E147D8
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0F0C15
muted
#7E7D83

Preview Lab

Preview with #645DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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