#646CEF#646CEF
#646CEF is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.194 H 276.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #646CEF |
|---|---|
| RGB | rgb(100, 108, 239) |
| HSL | hsl(237, 81%, 66%) |
| HSV | hsv(237, 58%, 94%) |
| CMYK | cmyk(58.2%, 54.8%, 0%, 6.3%) |
| CIE-LAB | lab(51.46, 34.62, -67.17) |
| CIE-LCH | lch(51.46, 75.57, 297.27°) |
| OKLab | oklab(59.52% 0.0208 -0.1927) |
| OKLCH | oklch(59.52% 0.194 276.2) |
| XYZ | xyz(26.1930, 19.6645, 84.0600) |
| Luminance | 0.1967 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.21
Cornflower
#6A79F7
ΔE00 4.30
Cornflower Blue
#5170D7
ΔE00 5.22
Royal Blue
#4169E1
ΔE00 5.60
Dark Periwinkle
#665FD1
ΔE00 6.10
Bright Blue
#0165FC
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#646CEF #EFE764
analogous
#64B2EF #646CEF #A264EF
triadic
#646CEF #EF646C #6CEF64
tetradic
#646CEF #EF64B2 #EFE764 #64EFA2
square
#646CEF #EF64B2 #EFE764 #64EFA2
split-complementary
#646CEF #EFA264 #B2EF64
monochromatic
#141EC4 #2D37E9 #646CEF #9BA1F5 #D3D5FA
Accessibility & contrast
On white
4.26
#646CEF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#646CEF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #646CEF
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##646CEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##646CEF | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0181F3
Deuteranopia (green-blind)
#0075EC
Tritanopia (blue-blind)
#008BA3
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #646cef; /* rgb */ color: rgb(100, 108, 239); /* oklch */ color: oklch(59.5% 0.194 276.2);
Tailwind
colors: {
custom: {
50: '#9c96f5',
500: '#646cef',
950: '#000000',
},
}SCSS
$custom: #646cef; $custom-light: #9c96f5; $custom-dark: #000000;
JSON
{
"hex": "#646cef",
"rgb": {
"r": 100,
"g": 108,
"b": 239
},
"hsl": {
"h": 236.547,
"s": 81.287,
"l": 66.471
},
"oklch": {
"l": 0.5952,
"c": 0.19378,
"h": 276.2
},
"luminance": 0.19666
}Semantic roles & 50–950 ramp
primary
#646CEF
secondary
#EEEBC1
accent
#D108DE
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#0F0D17
muted
#7F7E85