#645FE2#645FE2
#645FE2 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 56.3% C 0.193 H 279.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #645FE2 |
|---|---|
| RGB | rgb(100, 95, 226) |
| HSL | hsl(242, 69%, 63%) |
| HSV | hsv(242, 58%, 89%) |
| CMYK | cmyk(55.8%, 58%, 0%, 11.4%) |
| CIE-LAB | lab(47.47, 38.31, -66.31) |
| CIE-LCH | lch(47.47, 76.58, 300.01°) |
| OKLab | oklab(56.28% 0.0332 -0.1902) |
| OKLCH | oklch(56.28% 0.193 279.9) |
| XYZ | xyz(23.0709, 16.3832, 73.8833) |
| Luminance | 0.1638 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.38
Light Indigo
#6D5ACF
ΔE00 3.61
Slate Blue
#6A5ACD
ΔE00 3.62
Warm Blue
#4B57DB
ΔE00 4.34
Iris
#6258C4
ΔE00 4.86
Mediumslateblue
#7B68EE
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645FE2 #DDE25F
analogous
#5F9BE2 #645FE2 #A55FE2
triadic
#645FE2 #E2645F #5FE264
tetradic
#645FE2 #E25F9B #DDE25F #5FE2A5
square
#645FE2 #E25F9B #DDE25F #5FE2A5
split-complementary
#645FE2 #E2A55F #9BE25F
monochromatic
#241EA8 #322BD9 #645FE2 #9693EB #C8C7F5
Accessibility & contrast
On white
4.91
#645FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#645FE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645FE2
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645FE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645FE2 | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#217E97
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #645fe2; /* rgb */ color: rgb(100, 95, 226); /* oklch */ color: oklch(56.3% 0.193 279.9);
Tailwind
colors: {
custom: {
50: '#9a8cec',
500: '#645fe2',
950: '#000000',
},
}SCSS
$custom: #645fe2; $custom-light: #9a8cec; $custom-dark: #000000;
JSON
{
"hex": "#645fe2",
"rgb": {
"r": 100,
"g": 95,
"b": 226
},
"hsl": {
"h": 242.29,
"s": 69.312,
"l": 62.941
},
"oklch": {
"l": 0.56278,
"c": 0.19311,
"h": 279.9
},
"luminance": 0.16385
}Semantic roles & 50–950 ramp
primary
#645FE2
secondary
#E4E6B7
accent
#D114CA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C16
muted
#7F7D84