#645FE5#645FE5
#645FE5 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 56.5% C 0.197 H 279.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #645FE5 |
|---|---|
| RGB | rgb(100, 95, 229) |
| HSL | hsl(242, 72%, 64%) |
| HSV | hsv(242, 59%, 90%) |
| CMYK | cmyk(56.3%, 58.5%, 0%, 10.2%) |
| CIE-LAB | lab(47.69, 39.24, -67.66) |
| CIE-LCH | lch(47.69, 78.22, 300.11°) |
| OKLab | oklab(56.5% 0.0332 -0.1942) |
| OKLCH | oklch(56.5% 0.197 279.7) |
| XYZ | xyz(23.4861, 16.5493, 76.0703) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.78
Light Indigo
#6D5ACF
ΔE00 3.91
Slate Blue
#6A5ACD
ΔE00 3.96
Warm Blue
#4B57DB
ΔE00 4.50
Mediumslateblue
#7B68EE
ΔE00 4.84
Iris
#6258C4
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645FE5 #E0E55F
analogous
#5F9DE5 #645FE5 #A75FE5
triadic
#645FE5 #E5645F #5FE564
tetradic
#645FE5 #E55F9D #E0E55F #5FE5A7
square
#645FE5 #E55F9D #E0E55F #5FE5A7
split-complementary
#645FE5 #E5A75F #9DE55F
monochromatic
#221CAD #312ADC #645FE5 #9794EE #CAC8F6
Accessibility & contrast
On white
4.87
#645FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#645FE5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645FE5
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645FE5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645FE5 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006CE2
Tritanopia (blue-blind)
#1B7F99
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #645fe5; /* rgb */ color: rgb(100, 95, 229); /* oklch */ color: oklch(56.5% 0.197 279.7);
Tailwind
colors: {
custom: {
50: '#9b8dee',
500: '#645fe5',
950: '#000000',
},
}SCSS
$custom: #645fe5; $custom-light: #9b8dee; $custom-dark: #000000;
JSON
{
"hex": "#645fe5",
"rgb": {
"r": 100,
"g": 95,
"b": 229
},
"hsl": {
"h": 242.239,
"s": 72.043,
"l": 63.529
},
"oklch": {
"l": 0.56503,
"c": 0.19701,
"h": 279.7
},
"luminance": 0.16551
}Semantic roles & 50–950 ramp
primary
#645FE5
secondary
#E6E8B8
accent
#D411CD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C16
muted
#7F7D84