#645EC2#645EC2

#645EC2 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.8% C 0.151 H 282.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#645EC2
RGBrgb(100, 94, 194)
HSLhsl(244, 45%, 56%)
HSVhsv(244, 52%, 76%)
CMYKcmyk(48.5%, 51.5%, 0%, 23.9%)
CIE-LABlab(45.09, 28.98, -51.84)
CIE-LCHlch(45.09, 59.39, 299.21°)
OKLaboklab(53.83% 0.0334 -0.1477)
OKLCHoklch(53.83% 0.151 282.8)
XYZxyz(18.9929, 14.6088, 52.8475)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EC2 #BCC25E
analogous
#5E8AC2 #645EC2 #965EC2
triadic
#645EC2 #C2645E #5EC264
tetradic
#645EC2 #C25E8A #BCC25E #5EC296
square
#645EC2 #C25E8A #BCC25E #5EC296
split-complementary
#645EC2 #C2965E #8AC25E
monochromatic
#322E78 #443EA4 #645EC2 #8F8AD3 #B9B7E4

Accessibility & contrast

On white

5.35
#645EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#645EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EC2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EC2#FFFFFF#000000##FFFFFF
##645EC21.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6EC6
Deuteranopia (green-blind)
#2767C0
Tritanopia (blue-blind)
#427487
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #645ec2;
/* rgb */ color: rgb(100, 94, 194);
/* oklch */ color: oklch(53.8% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#968bd5',
    500: '#645ec2',
    950: '#000000',
  },
}
SCSS
$custom: #645ec2;
$custom-light: #968bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#645ec2",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 243.6,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.53826,
    "c": 0.15142,
    "h": 282.8
  },
  "luminance": 0.1461
}

Semantic roles & 50–950 ramp

primary
#645EC2
secondary
#D0D2A9
accent
#D553CD
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0C14
muted
#7E7D83

Preview Lab

Preview with #645EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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