#645BC2#645BC2

#645BC2 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.3% C 0.156 H 283.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#645BC2
RGBrgb(100, 91, 194)
HSLhsl(245, 46%, 56%)
HSVhsv(245, 53%, 76%)
CMYKcmyk(48.5%, 53.1%, 0%, 23.9%)
CIE-LABlab(44.36, 30.82, -53.03)
CIE-LCHlch(44.36, 61.33, 300.16°)
OKLaboklab(53.27% 0.0369 -0.1512)
OKLCHoklch(53.27% 0.156 283.7)
XYZxyz(18.7313, 14.0856, 52.7603)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BC2 #B9C25B
analogous
#5B85C2 #645BC2 #975BC2
triadic
#645BC2 #C2645B #5BC264
tetradic
#645BC2 #C25B85 #B9C25B #5BC297
square
#645BC2 #C25B85 #B9C25B #5BC297
split-complementary
#645BC2 #C2975B #85C25B
monochromatic
#332C77 #463DA3 #645BC2 #8E88D3 #B8B4E3

Accessibility & contrast

On white

5.50
#645BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#645BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BC2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BC2#FFFFFF#000000##FFFFFF
##645BC21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#1F66C0
Tritanopia (blue-blind)
#437286
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645bc2;
/* rgb */ color: rgb(100, 91, 194);
/* oklch */ color: oklch(53.3% 0.156 283.7);
Tailwind
colors: {
  custom: {
    50: '#9689d5',
    500: '#645bc2',
    950: '#000000',
  },
}
SCSS
$custom: #645bc2;
$custom-light: #9689d5;
$custom-dark: #000000;
JSON
{
  "hex": "#645bc2",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 245.243,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53274,
    "c": 0.15563,
    "h": 283.7
  },
  "luminance": 0.14087
}

Semantic roles & 50–950 ramp

primary
#645BC2
secondary
#CED2A7
accent
#D552CA
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #645BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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