#645EA2#645EA2

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

Color values

HEX#645EA2
RGBrgb(100, 94, 162)
HSLhsl(245, 27%, 50%)
HSVhsv(245, 42%, 64%)
CMYKcmyk(38.3%, 42%, 0%, 36.5%)
CIE-LABlab(43.25, 19.42, -36.04)
CIE-LCHlch(43.25, 40.94, 298.32°)
OKLaboklab(51.83% 0.0293 -0.1014)
OKLCHoklch(51.83% 0.106 286.1)
XYZxyz(15.7780, 13.3229, 35.9157)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EA2 #9CA25E
analogous
#5E7AA2 #645EA2 #865EA2
triadic
#645EA2 #A2645E #5EA264
tetradic
#645EA2 #A25E7A #9CA25E #5EA286
square
#645EA2 #A25E7A #9CA25E #5EA286
split-complementary
#645EA2 #A2865E #7AA25E
monochromatic
#343155 #4C477B #645EA2 #8985B8 #AFACCF

Accessibility & contrast

On white

5.73
#645EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645EA2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EA2#FFFFFF#000000##FFFFFF
##645EA21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#4664A0
Tritanopia (blue-blind)
#536B78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645ea2;
/* rgb */ color: rgb(100, 94, 162);
/* oklch */ color: oklch(51.8% 0.106 286.1);
Tailwind
colors: {
  custom: {
    50: '#938bbe',
    500: '#645ea2',
    950: '#000000',
  },
}
SCSS
$custom: #645ea2;
$custom-light: #938bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#645ea2",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 245.294,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51833,
    "c": 0.10554,
    "h": 286.1
  },
  "luminance": 0.13323
}

Semantic roles & 50–950 ramp

primary
#645EA2
secondary
#BABD9F
accent
#C365BB
background
#F9F8FB
surface
#F1F0F7
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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