#645FCB#645FCB

#645FCB is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.6% C 0.162 H 281.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#645FCB
RGBrgb(100, 95, 203)
HSLhsl(243, 51%, 58%)
HSVhsv(243, 53%, 80%)
CMYKcmyk(50.7%, 53.2%, 0%, 20.4%)
CIE-LABlab(45.91, 31.14, -55.72)
CIE-LCHlch(45.91, 63.83, 299.20°)
OKLaboklab(54.62% 0.0328 -0.1591)
OKLCHoklch(54.62% 0.162 281.7)
XYZxyz(20.1239, 15.2044, 58.3627)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FCB #C6CB5F
analogous
#5F90CB #645FCB #9A5FCB
triadic
#645FCB #CB645F #5FCB64
tetradic
#645FCB #CB5F90 #C6CB5F #5FCB9A
square
#645FCB #CB5F90 #C6CB5F #5FCB9A
split-complementary
#645FCB #CB9A5F #90CB5F
monochromatic
#2F2B85 #403AB3 #645FCB #918DDA #BDBBE9

Accessibility & contrast

On white

5.20
#645FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645FCB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FCB#FFFFFF#000000##FFFFFF
##645FCB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2471CF
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#3B778C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #645fcb;
/* rgb */ color: rgb(100, 95, 203);
/* oklch */ color: oklch(54.6% 0.162 281.7);
Tailwind
colors: {
  custom: {
    50: '#978cdb',
    500: '#645fcb',
    950: '#000000',
  },
}
SCSS
$custom: #645fcb;
$custom-light: #978cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#645fcb",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 242.778,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54623,
    "c": 0.16241,
    "h": 281.7
  },
  "luminance": 0.15206
}

Semantic roles & 50–950 ramp

primary
#645FCB
secondary
#D6D8AD
accent
#DA4DD4
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #645FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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