#645ECF#645ECF

#645ECF is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.7% C 0.169 H 281.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#645ECF
RGBrgb(100, 94, 207)
HSLhsl(243, 54%, 59%)
HSVhsv(243, 55%, 81%)
CMYKcmyk(51.7%, 54.6%, 0%, 18.8%)
CIE-LABlab(45.93, 32.99, -57.98)
CIE-LCHlch(45.93, 66.71, 299.64°)
OKLaboklab(54.72% 0.0341 -0.1657)
OKLCHoklch(54.72% 0.169 281.6)
XYZxyz(20.5173, 15.2186, 60.8757)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645ECF #C9CF5E
analogous
#5E91CF #645ECF #9D5ECF
triadic
#645ECF #CF645E #5ECF64
tetradic
#645ECF #CF5E91 #C9CF5E #5ECF9D
square
#645ECF #CF5E91 #C9CF5E #5ECF9D
split-complementary
#645ECF #CF9D5E #91CF5E
monochromatic
#2E298A #3E37B9 #645ECF #918DDD #BFBCEB

Accessibility & contrast

On white

5.19
#645ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#645ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645ECF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645ECF#FFFFFF#000000##FFFFFF
##645ECF1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1871D3
Deuteranopia (green-blind)
#0369CD
Tritanopia (blue-blind)
#38788D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #645ecf;
/* rgb */ color: rgb(100, 94, 207);
/* oklch */ color: oklch(54.7% 0.169 281.6);
Tailwind
colors: {
  custom: {
    50: '#988cde',
    500: '#645ecf',
    950: '#000000',
  },
}
SCSS
$custom: #645ecf;
$custom-light: #988cde;
$custom-dark: #000000;
JSON
{
  "hex": "#645ecf",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 243.186,
    "s": 54.067,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54721,
    "c": 0.16921,
    "h": 281.6
  },
  "luminance": 0.1522
}

Semantic roles & 50–950 ramp

primary
#645ECF
secondary
#D8DBAE
accent
#DD4AD6
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #645ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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