#645AE2#645AE2
#645AE2 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.4% C 0.199 H 281.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #645AE2 |
|---|---|
| RGB | rgb(100, 90, 226) |
| HSL | hsl(244, 70%, 62%) |
| HSV | hsv(244, 60%, 89%) |
| CMYK | cmyk(55.8%, 60.2%, 0%, 11.4%) |
| CIE-LAB | lab(46.33, 41.27, -68.17) |
| CIE-LCH | lch(46.33, 79.69, 301.19°) |
| OKLab | oklab(55.43% 0.038 -0.1957) |
| OKLCH | oklch(55.43% 0.199 281) |
| XYZ | xyz(22.6349, 15.5112, 73.7380) |
| Luminance | 0.1551 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.72
Light Indigo
#6D5ACF
ΔE00 3.07
Slate Blue
#6A5ACD
ΔE00 3.11
Warm Blue
#4B57DB
ΔE00 3.88
Iris
#6258C4
ΔE00 4.33
Mediumslateblue
#7B68EE
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645AE2 #D8E25A
analogous
#5A94E2 #645AE2 #A85AE2
triadic
#645AE2 #E2645A #5AE264
tetradic
#645AE2 #E25A94 #D8E25A #5AE2A8
square
#645AE2 #E25A94 #D8E25A #5AE2A8
split-complementary
#645AE2 #E2A85A #94E25A
monochromatic
#271DA5 #3326D9 #645AE2 #958EEB #C6C2F4
Accessibility & contrast
On white
5.12
#645AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#645AE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645AE2
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645AE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645AE2 | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#227B95
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #645ae2; /* rgb */ color: rgb(100, 90, 226); /* oklch */ color: oklch(55.4% 0.199 281.0);
Tailwind
colors: {
custom: {
50: '#9b89ec',
500: '#645ae2',
950: '#000000',
},
}SCSS
$custom: #645ae2; $custom-light: #9b89ec; $custom-dark: #000000;
JSON
{
"hex": "#645ae2",
"rgb": {
"r": 100,
"g": 90,
"b": 226
},
"hsl": {
"h": 244.412,
"s": 70.103,
"l": 61.961
},
"oklch": {
"l": 0.55433,
"c": 0.1994,
"h": 281
},
"luminance": 0.15513
}Semantic roles & 50–950 ramp
primary
#645AE2
secondary
#E1E5B3
accent
#D213C4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B16
muted
#7F7C84