#645BCB#645BCB

#645BCB is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.9% C 0.168 H 282.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#645BCB
RGBrgb(100, 91, 203)
HSLhsl(245, 52%, 58%)
HSVhsv(245, 55%, 80%)
CMYKcmyk(50.7%, 55.2%, 0%, 20.4%)
CIE-LABlab(44.94, 33.57, -57.28)
CIE-LCHlch(44.94, 66.39, 300.38°)
OKLaboklab(53.9% 0.0373 -0.1637)
OKLCHoklch(53.9% 0.168 282.8)
XYZxyz(19.7728, 14.5022, 58.2457)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BCB #C2CB5B
analogous
#5B8ACB #645BCB #9C5BCB
triadic
#645BCB #CB645B #5BCB64
tetradic
#645BCB #CB5B8A #C2CB5B #5BCB9C
square
#645BCB #CB5B8A #C2CB5B #5BCB9C
split-complementary
#645BCB #CB9C5B #8ACB5B
monochromatic
#302982 #4238B1 #645BCB #9089DA #BCB8E8

Accessibility & contrast

On white

5.38
#645BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#645BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BCB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BCB#FFFFFF#000000##FFFFFF
##645BCB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146ECF
Deuteranopia (green-blind)
#0267C9
Tritanopia (blue-blind)
#3C748A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #645bcb;
/* rgb */ color: rgb(100, 91, 203);
/* oklch */ color: oklch(53.9% 0.168 282.8);
Tailwind
colors: {
  custom: {
    50: '#9889db',
    500: '#645bcb',
    950: '#000000',
  },
}
SCSS
$custom: #645bcb;
$custom-light: #9889db;
$custom-dark: #000000;
JSON
{
  "hex": "#645bcb",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 244.821,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53902,
    "c": 0.16787,
    "h": 282.8
  },
  "luminance": 0.14503
}

Semantic roles & 50–950 ramp

primary
#645BCB
secondary
#D4D7AA
accent
#DB4CD0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #645BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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