#645AF2#645AF2

#645AF2 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.7% C 0.220 H 279.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#645AF2
RGBrgb(100, 90, 242)
HSLhsl(244, 85%, 65%)
HSVhsv(244, 63%, 95%)
CMYKcmyk(58.7%, 62.8%, 0%, 5.1%)
CIE-LABlab(47.53, 46.22, -75.22)
CIE-LCHlch(47.53, 88.29, 301.57°)
OKLaboklab(56.69% 0.037 -0.2164)
OKLCHoklch(56.69% 0.22 279.7)
XYZxyz(24.9336, 16.4307, 85.8447)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AF2 #E8F25A
analogous
#5A9CF2 #645AF2 #B05AF2
triadic
#645AF2 #F2645A #5AF264
tetradic
#645AF2 #F25A9C #E8F25A #5AF2B0
square
#645AF2 #F25A9C #E8F25A #5AF2B0
split-complementary
#645AF2 #F2B05A #9CF25A
monochromatic
#1B0FC2 #2F21EE #645AF2 #9993F6 #CFCBFB

Accessibility & contrast

On white

4.90
#645AF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#645AF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AF2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AF2#FFFFFF#000000##FFFFFF
##645AF21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006BEF
Tritanopia (blue-blind)
#00809E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #645af2;
/* rgb */ color: rgb(100, 90, 242);
/* oklch */ color: oklch(56.7% 0.220 279.7);
Tailwind
colors: {
  custom: {
    50: '#9d89f7',
    500: '#645af2',
    950: '#000000',
  },
}
SCSS
$custom: #645af2;
$custom-light: #9d89f7;
$custom-dark: #000000;
JSON
{
  "hex": "#645af2",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 243.947,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56695,
    "c": 0.21958,
    "h": 279.7
  },
  "luminance": 0.16432
}

Semantic roles & 50–950 ramp

primary
#645AF2
secondary
#EAEEBA
accent
#E204D3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #645AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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