#6871F2#6871F2
#6871F2 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.9% C 0.191 H 276.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #6871F2 |
|---|---|
| RGB | rgb(104, 113, 242) |
| HSL | hsl(236, 84%, 68%) |
| HSV | hsv(236, 57%, 95%) |
| CMYK | cmyk(57%, 53.3%, 0%, 5.1%) |
| CIE-LAB | lab(53.13, 33.29, -66.13) |
| CIE-LCH | lch(53.13, 74.04, 296.72°) |
| OKLab | oklab(60.9% 0.0204 -0.1894) |
| OKLCH | oklch(60.9% 0.191 276.2) |
| XYZ | xyz(27.6359, 21.1621, 86.6156) |
| Luminance | 0.2116 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.63
Mediumslateblue
#7B68EE
ΔE00 4.62
Cornflower Blue
#5170D7
ΔE00 5.59
Royal Blue
#4169E1
ΔE00 6.56
Lightish Blue
#3D7AFD
ΔE00 6.77
Dark Periwinkle
#665FD1
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6871F2 #F2E968
analogous
#68B6F2 #6871F2 #A468F2
triadic
#6871F2 #F26871 #71F268
tetradic
#6871F2 #F268B6 #F2E968 #68F2A4
square
#6871F2 #F268B6 #F2E968 #68F2A4
split-complementary
#6871F2 #F2A468 #B6F268
monochromatic
#121ECE #303CED #6871F2 #A0A6F7 #D9DBFC
Accessibility & contrast
On white
4.01
#6871F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.23
#6871F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #6871F2
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6871F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##6871F2 | 1.00 | 4.01 | 5.23 | 5.23 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E85F6
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#088FA7
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #6871f2; /* rgb */ color: rgb(104, 113, 242); /* oklch */ color: oklch(60.9% 0.191 276.2);
Tailwind
colors: {
custom: {
50: '#9e99f7',
500: '#6871f2',
950: '#000000',
},
}SCSS
$custom: #6871f2; $custom-light: #9e99f7; $custom-dark: #000000;
JSON
{
"hex": "#6871f2",
"rgb": {
"r": 104,
"g": 113,
"b": 242
},
"hsl": {
"h": 236.087,
"s": 84.146,
"l": 67.843
},
"oklch": {
"l": 0.60899,
"c": 0.19055,
"h": 276.2
},
"luminance": 0.21164
}Semantic roles & 50–950 ramp
primary
#6871F2
secondary
#F0EDC6
accent
#D205E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85