#645FE1#645FE1
#645FE1 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 56.2% C 0.192 H 280.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #645FE1 |
|---|---|
| RGB | rgb(100, 95, 225) |
| HSL | hsl(242, 68%, 63%) |
| HSV | hsv(242, 58%, 88%) |
| CMYK | cmyk(55.6%, 57.8%, 0%, 11.8%) |
| CIE-LAB | lab(47.40, 37.99, -65.86) |
| CIE-LCH | lch(47.40, 76.03, 299.98°) |
| OKLab | oklab(56.2% 0.0332 -0.1889) |
| OKLCH | oklch(56.2% 0.192 280) |
| XYZ | xyz(22.9341, 16.3285, 73.1628) |
| Luminance | 0.1633 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.25
Slate Blue
#6A5ACD
ΔE00 3.51
Light Indigo
#6D5ACF
ΔE00 3.52
Warm Blue
#4B57DB
ΔE00 4.29
Iris
#6258C4
ΔE00 4.73
Mediumslateblue
#7B68EE
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645FE1 #DCE15F
analogous
#5F9BE1 #645FE1 #A55FE1
triadic
#645FE1 #E1645F #5FE164
tetradic
#645FE1 #E15F9B #DCE15F #5FE1A5
square
#645FE1 #E15F9B #DCE15F #5FE1A5
split-complementary
#645FE1 #E1A55F #9BE15F
monochromatic
#241FA6 #322BD7 #645FE1 #9693EB #C8C6F4
Accessibility & contrast
On white
4.92
#645FE1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#645FE1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645FE1
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645FE1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645FE1 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E5
Deuteranopia (green-blind)
#006BDE
Tritanopia (blue-blind)
#237E97
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #645fe1; /* rgb */ color: rgb(100, 95, 225); /* oklch */ color: oklch(56.2% 0.192 280.0);
Tailwind
colors: {
custom: {
50: '#9a8ceb',
500: '#645fe1',
950: '#000000',
},
}SCSS
$custom: #645fe1; $custom-light: #9a8ceb; $custom-dark: #000000;
JSON
{
"hex": "#645fe1",
"rgb": {
"r": 100,
"g": 95,
"b": 225
},
"hsl": {
"h": 242.308,
"s": 68.421,
"l": 62.745
},
"oklch": {
"l": 0.56203,
"c": 0.1918,
"h": 280
},
"luminance": 0.1633
}Semantic roles & 50–950 ramp
primary
#645FE1
secondary
#E4E5B6
accent
#D015C9
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C16
muted
#7F7D84