#6151B2#6151B2
#6151B2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.148 H 287.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #6151B2 |
|---|---|
| RGB | rgb(97, 81, 178) |
| HSL | hsl(250, 39%, 51%) |
| HSV | hsv(250, 54%, 70%) |
| CMYK | cmyk(45.5%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(40.64, 31.40, -49.67) |
| CIE-LCH | lch(40.64, 58.77, 302.30°) |
| OKLab | oklab(50.11% 0.0443 -0.1414) |
| OKLCH | oklch(50.11% 0.148 287.4) |
| XYZ | xyz(15.9058, 11.6400, 43.5195) |
| Luminance | 0.1164 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.49
Slate Blue
#6A5ACD
ΔE00 4.99
Ocean Blue
#4F42B5
ΔE00 5.10
Light Indigo
#6D5ACF
ΔE00 5.37
Bluey Purple
#6241C7
ΔE00 5.48
Royal Purple
#7851A9
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6151B2 #A2B251
analogous
#5171B2 #6151B2 #9151B2
triadic
#6151B2 #B26151 #51B261
tetradic
#6151B2 #B25171 #A2B251 #51B291
square
#6151B2 #B25171 #A2B251 #51B291
split-complementary
#6151B2 #B29151 #71B251
monochromatic
#332A5F #493D89 #6151B2 #887BC5 #AEA6D8
Accessibility & contrast
On white
6.31
#6151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#6151B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6151B2
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6151B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6151B2 | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#1E5DB0
Tritanopia (blue-blind)
#486679
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6151b2; /* rgb */ color: rgb(97, 81, 178); /* oklch */ color: oklch(50.1% 0.148 287.4);
Tailwind
colors: {
custom: {
50: '#9382ca',
500: '#6151b2',
950: '#000000',
},
}SCSS
$custom: #6151b2; $custom-light: #9382ca; $custom-dark: #000000;
JSON
{
"hex": "#6151b2",
"rgb": {
"r": 97,
"g": 81,
"b": 178
},
"hsl": {
"h": 249.897,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.50112,
"c": 0.14821,
"h": 287.4
},
"luminance": 0.11641
}Semantic roles & 50–950 ramp
primary
#6151B2
secondary
#BEC59A
accent
#CF59BB
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0D0A13
muted
#7E7C82