#645EA1#645EA1

#645EA1 is a mid, moderate blue. Relative luminance 0.133; OKLCH L 51.8% C 0.104 H 286.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#645EA1
RGBrgb(100, 94, 161)
HSLhsl(245, 26%, 50%)
HSVhsv(245, 42%, 63%)
CMYKcmyk(37.9%, 41.6%, 0%, 36.9%)
CIE-LABlab(43.19, 19.14, -35.53)
CIE-LCHlch(43.19, 40.36, 298.31°)
OKLaboklab(51.78% 0.0291 -0.0999)
OKLCHoklch(51.78% 0.104 286.3)
XYZxyz(15.6895, 13.2874, 35.4494)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EA1 #9BA15E
analogous
#5E7AA1 #645EA1 #855EA1
triadic
#645EA1 #A1645E #5EA164
tetradic
#645EA1 #A15E7A #9BA15E #5EA185
square
#645EA1 #A15E7A #9BA15E #5EA185
split-complementary
#645EA1 #A1855E #7AA15E
monochromatic
#343154 #4C477A #645EA1 #8985B8 #AEABCE

Accessibility & contrast

On white

5.74
#645EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#645EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EA1
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EA1#FFFFFF#000000##FFFFFF
##645EA11.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4868A4
Deuteranopia (green-blind)
#46649F
Tritanopia (blue-blind)
#546B78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645ea1;
/* rgb */ color: rgb(100, 94, 161);
/* oklch */ color: oklch(51.8% 0.104 286.3);
Tailwind
colors: {
  custom: {
    50: '#938bbd',
    500: '#645ea1',
    950: '#000000',
  },
}
SCSS
$custom: #645ea1;
$custom-light: #938bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#645ea1",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 245.373,
    "s": 26.275,
    "l": 50
  },
  "oklch": {
    "l": 0.51776,
    "c": 0.10406,
    "h": 286.3
  },
  "luminance": 0.13288
}

Semantic roles & 50–950 ramp

primary
#645EA1
secondary
#BABC9E
accent
#C365BA
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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