#3151C6#3151C6
#3151C6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.186 H 267.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #3151C6 |
|---|---|
| RGB | rgb(49, 81, 198) |
| HSL | hsl(227, 60%, 48%) |
| HSV | hsv(227, 75%, 78%) |
| CMYK | cmyk(75.3%, 59.1%, 0%, 22.4%) |
| CIE-LAB | lab(38.92, 29.81, -64.30) |
| CIE-LCH | lch(38.92, 70.88, 294.87°) |
| OKLab | oklab(48.47% -0.0089 -0.1857) |
| OKLCH | oklch(48.47% 0.186 267.2) |
| XYZ | xyz(14.3985, 10.6135, 54.7049) |
| Luminance | 0.1061 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.76
Blue Blue
#2242C7
ΔE00 4.51
Warm Blue
#4B57DB
ΔE00 4.74
Blue (survey)
#0343DF
ΔE00 4.96
Cobalt
#0047AB
ΔE00 5.73
Azul
#1D5DEC
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151C6 #C6A631
analogous
#319BC6 #3151C6 #5B31C6
triadic
#3151C6 #C63151 #51C631
tetradic
#3151C6 #C6319B #C6A631 #31C65B
square
#3151C6 #C6319B #C6A631 #31C65B
split-complementary
#3151C6 #C65B31 #9BC631
monochromatic
#192964 #253D95 #3151C6 #5D77D7 #8EA1E3
Accessibility & contrast
On white
6.72
#3151C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#3151C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151C6
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151C6 | 1.00 | 6.72 | 3.12 | 6.72 |
| #FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3151c6; /* rgb */ color: rgb(49, 81, 198); /* oklch */ color: oklch(48.5% 0.186 267.2);
Tailwind
colors: {
custom: {
50: '#7f81d8',
500: '#3151c6',
950: '#000000',
},
}SCSS
$custom: #3151c6; $custom-light: #7f81d8; $custom-dark: #000000;
JSON
{
"hex": "#3151c6",
"rgb": {
"r": 49,
"g": 81,
"b": 198
},
"hsl": {
"h": 227.114,
"s": 60.324,
"l": 48.431
},
"oklch": {
"l": 0.48474,
"c": 0.1859,
"h": 267.2
},
"luminance": 0.10615
}Semantic roles & 50–950 ramp
primary
#3151C6
secondary
#CEBE85
accent
#C144E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83