#645FFB#645FFB

#645FFB is a mid, highly saturated blue. Relative luminance 0.179; OKLCH L 58.2% C 0.225 H 278.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#645FFB
RGBrgb(100, 95, 251)
HSLhsl(242, 95%, 68%)
HSVhsv(242, 62%, 98%)
CMYKcmyk(60.2%, 62.2%, 0%, 1.6%)
CIE-LABlab(49.32, 46.13, -77.33)
CIE-LCHlch(49.32, 90.04, 300.82°)
OKLaboklab(58.22% 0.0321 -0.2226)
OKLCHoklch(58.22% 0.225 278.2)
XYZxyz(26.7547, 17.8567, 93.2849)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FFB #F6FB5F
analogous
#5FA8FB #645FFB #B25FFB
triadic
#645FFB #FB645F #5FFB64
tetradic
#645FFB #FB5FA8 #F6FB5F #5FFBB2
square
#645FFB #FB5FA8 #F6FB5F #5FFBB2
split-complementary
#645FFB #FBB25F #A8FB5F
monochromatic
#0C05DA #2A23FA #645FFB #9E9BFC #D8D6FE

Accessibility & contrast

On white

4.59
#645FFB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#645FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #645FFB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FFB#FFFFFF#000000##FFFFFF
##645FFB1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#006FF8
Tritanopia (blue-blind)
#0086A4
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #645ffb;
/* rgb */ color: rgb(100, 95, 251);
/* oklch */ color: oklch(58.2% 0.225 278.2);
Tailwind
colors: {
  custom: {
    50: '#9e8dfe',
    500: '#645ffb',
    950: '#000000',
  },
}
SCSS
$custom: #645ffb;
$custom-light: #9e8dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#645ffb",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 251
  },
  "hsl": {
    "h": 241.923,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.58216,
    "c": 0.22492,
    "h": 278.2
  },
  "luminance": 0.17859
}

Semantic roles & 50–950 ramp

primary
#645FFB
secondary
#F1F3C3
accent
#E600DE
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #645FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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