#3151C7#3151C7
#3151C7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.187 H 267.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3151C7 |
|---|---|
| RGB | rgb(49, 81, 199) |
| HSL | hsl(227, 60%, 49%) |
| HSV | hsv(227, 75%, 78%) |
| CMYK | cmyk(75.4%, 59.3%, 0%, 22%) |
| CIE-LAB | lab(39.00, 30.18, -64.75) |
| CIE-LCH | lch(39.00, 71.44, 294.99°) |
| OKLab | oklab(48.56% -0.0089 -0.187) |
| OKLCH | oklch(48.56% 0.187 267.3) |
| XYZ | xyz(14.5143, 10.6598, 55.3144) |
| Luminance | 0.1066 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.85
Blue Blue
#2242C7
ΔE00 4.50
Warm Blue
#4B57DB
ΔE00 4.63
Blue (survey)
#0343DF
ΔE00 4.89
Cobalt
#0047AB
ΔE00 5.83
Azul
#1D5DEC
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151C7 #C7A731
analogous
#319CC7 #3151C7 #5C31C7
triadic
#3151C7 #C73151 #51C731
tetradic
#3151C7 #C7319C #C7A731 #31C75C
square
#3151C7 #C7319C #C7A731 #31C75C
split-complementary
#3151C7 #C75C31 #9CC731
monochromatic
#192965 #253D96 #3151C7 #5E78D7 #8FA1E3
Accessibility & contrast
On white
6.70
#3151C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#3151C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151C7
6.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151C7 | 1.00 | 6.70 | 3.13 | 6.70 |
| #FFFFFF | 6.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3151c7; /* rgb */ color: rgb(49, 81, 199); /* oklch */ color: oklch(48.6% 0.187 267.3);
Tailwind
colors: {
custom: {
50: '#7f81d9',
500: '#3151c7',
950: '#000000',
},
}SCSS
$custom: #3151c7; $custom-light: #7f81d9; $custom-dark: #000000;
JSON
{
"hex": "#3151c7",
"rgb": {
"r": 49,
"g": 81,
"b": 199
},
"hsl": {
"h": 227.2,
"s": 60.484,
"l": 48.627
},
"oklch": {
"l": 0.48559,
"c": 0.18723,
"h": 267.3
},
"luminance": 0.10661
}Semantic roles & 50–950 ramp
primary
#3151C7
secondary
#CEBF86
accent
#C244E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83