#645DAF#645DAF

#645DAF is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.4% C 0.126 H 285.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#645DAF
RGBrgb(100, 93, 175)
HSLhsl(245, 34%, 53%)
HSVhsv(245, 47%, 69%)
CMYKcmyk(42.9%, 46.9%, 0%, 31.4%)
CIE-LABlab(43.70, 23.86, -42.99)
CIE-LCHlch(43.70, 49.17, 299.03°)
OKLaboklab(52.41% 0.0327 -0.1217)
OKLCHoklch(52.41% 0.126 285.1)
XYZxyz(16.9055, 13.6325, 42.2897)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DAF #A8AF5D
analogous
#5D7FAF #645DAF #8D5DAF
triadic
#645DAF #AF645D #5DAF64
tetradic
#645DAF #AF5D7F #A8AF5D #5DAF8D
square
#645DAF #AF5D7F #A8AF5D #5DAF8D
split-complementary
#645DAF #AF8D5D #7FAF5D
monochromatic
#343061 #4A448A #645DAF #8B86C3 #B2AFD7

Accessibility & contrast

On white

5.64
#645DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#645DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DAF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DAF#FFFFFF#000000##FFFFFF
##645DAF1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6AB2
Deuteranopia (green-blind)
#3B65AD
Tritanopia (blue-blind)
#4D6E7D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645daf;
/* rgb */ color: rgb(100, 93, 175);
/* oklch */ color: oklch(52.4% 0.126 285.1);
Tailwind
colors: {
  custom: {
    50: '#948bc7',
    500: '#645daf',
    950: '#000000',
  },
}
SCSS
$custom: #645daf;
$custom-light: #948bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#645daf",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 175
  },
  "hsl": {
    "h": 245.122,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52411,
    "c": 0.12603,
    "h": 285.1
  },
  "luminance": 0.13633
}

Semantic roles & 50–950 ramp

primary
#645DAF
secondary
#C3C6A2
accent
#CA5EC1
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0C13
muted
#7E7D82

Preview Lab

Preview with #645DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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