#645BB2#645BB2

#645BB2 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.2% C 0.133 H 285.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#645BB2
RGBrgb(100, 91, 178)
HSLhsl(246, 36%, 53%)
HSVhsv(246, 49%, 70%)
CMYKcmyk(43.8%, 48.9%, 0%, 30.2%)
CIE-LABlab(43.37, 25.99, -45.28)
CIE-LCHlch(43.37, 52.21, 299.85°)
OKLaboklab(52.22% 0.0357 -0.1284)
OKLCHoklch(52.22% 0.133 285.5)
XYZxyz(17.0302, 13.4052, 43.8010)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BB2 #A9B25B
analogous
#5B7DB2 #645BB2 #905BB2
triadic
#645BB2 #B2645B #5BB264
tetradic
#645BB2 #B25B7D #A9B25B #5BB290
square
#645BB2 #B25B7D #A9B25B #5BB290
split-complementary
#645BB2 #B2905B #7DB25B
monochromatic
#342F64 #4A428D #645BB2 #8B85C6 #B3AED9

Accessibility & contrast

On white

5.70
#645BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#645BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BB2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BB2#FFFFFF#000000##FFFFFF
##645BB21.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#4C6D7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645bb2;
/* rgb */ color: rgb(100, 91, 178);
/* oklch */ color: oklch(52.2% 0.133 285.5);
Tailwind
colors: {
  custom: {
    50: '#9489c9',
    500: '#645bb2',
    950: '#000000',
  },
}
SCSS
$custom: #645bb2;
$custom-light: #9489c9;
$custom-dark: #000000;
JSON
{
  "hex": "#645bb2",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 246.207,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52216,
    "c": 0.13329,
    "h": 285.5
  },
  "luminance": 0.13406
}

Semantic roles & 50–950 ramp

primary
#645BB2
secondary
#C3C7A2
accent
#CC5CC0
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0E0B13
muted
#7E7C82

Preview Lab

Preview with #645BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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