#646FE4#646FE4
#646FE4 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.175 H 275.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #646FE4 |
|---|---|
| RGB | rgb(100, 111, 228) |
| HSL | hsl(235, 70%, 64%) |
| HSV | hsv(235, 56%, 89%) |
| CMYK | cmyk(56.1%, 51.3%, 0%, 10.6%) |
| CIE-LAB | lab(51.47, 29.28, -60.98) |
| CIE-LCH | lch(51.47, 67.64, 295.65°) |
| OKLab | oklab(59.3% 0.0172 -0.1744) |
| OKLCH | oklch(59.3% 0.175 275.6) |
| XYZ | xyz(24.9391, 19.6779, 75.8678) |
| Luminance | 0.1968 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 4.00
Cornflower
#6A79F7
ΔE00 4.15
Mediumslateblue
#7B68EE
ΔE00 5.12
Royal Blue
#4169E1
ΔE00 5.15
Dark Periwinkle
#665FD1
ΔE00 6.11
Lightish Blue
#3D7AFD
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#646FE4 #E4D964
analogous
#64AFE4 #646FE4 #9964E4
triadic
#646FE4 #E4646F #6FE464
tetradic
#646FE4 #E464AF #E4D964 #64E499
square
#646FE4 #E464AF #E4D964 #64E499
split-complementary
#646FE4 #E49964 #AFE464
monochromatic
#1F2BAF #303FDB #646FE4 #989FED #CCD0F6
Accessibility & contrast
On white
4.25
#646FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#646FE4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #646FE4
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##646FE4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##646FE4 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E80E8
Deuteranopia (green-blind)
#1475E2
Tritanopia (blue-blind)
#188A9F
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #646fe4; /* rgb */ color: rgb(100, 111, 228); /* oklch */ color: oklch(59.3% 0.175 275.6);
Tailwind
colors: {
custom: {
50: '#9a98ed',
500: '#646fe4',
950: '#000000',
},
}SCSS
$custom: #646fe4; $custom-light: #9a98ed; $custom-dark: #000000;
JSON
{
"hex": "#646fe4",
"rgb": {
"r": 100,
"g": 111,
"b": 228
},
"hsl": {
"h": 234.844,
"s": 70.33,
"l": 64.314
},
"oklch": {
"l": 0.59302,
"c": 0.17526,
"h": 275.6
},
"luminance": 0.1968
}Semantic roles & 50–950 ramp
primary
#646FE4
secondary
#E8E4BC
accent
#C213D2
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0D16
muted
#7F7E84