#3151C1#3151C1
#3151C1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.179 H 267.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #3151C1 |
|---|---|
| RGB | rgb(49, 81, 193) |
| HSL | hsl(227, 60%, 47%) |
| HSV | hsv(227, 75%, 76%) |
| CMYK | cmyk(74.6%, 58%, 0%, 24.3%) |
| CIE-LAB | lab(38.53, 27.96, -62.03) |
| CIE-LCH | lch(38.53, 68.04, 294.26°) |
| OKLab | oklab(48.06% -0.0091 -0.179) |
| OKLCH | oklch(48.06% 0.179 267.1) |
| XYZ | xyz(13.8313, 10.3866, 51.7176) |
| Luminance | 0.1039 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.31
Blue Blue
#2242C7
ΔE00 4.63
Cobalt
#0047AB
ΔE00 5.22
Warm Blue
#4B57DB
ΔE00 5.29
Blue (survey)
#0343DF
ΔE00 5.41
Azul
#1D5DEC
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151C1 #C1A131
analogous
#3199C1 #3151C1 #5931C1
triadic
#3151C1 #C13151 #51C131
tetradic
#3151C1 #C13199 #C1A131 #31C159
square
#3151C1 #C13199 #C1A131 #31C159
split-complementary
#3151C1 #C15931 #99C131
monochromatic
#18285F #253D90 #3151C1 #5A75D5 #8B9EE2
Accessibility & contrast
On white
6.82
#3151C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#3151C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151C1
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151C1 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3151c1; /* rgb */ color: rgb(49, 81, 193); /* oklch */ color: oklch(48.1% 0.179 267.1);
Tailwind
colors: {
custom: {
50: '#7e81d5',
500: '#3151c1',
950: '#000000',
},
}SCSS
$custom: #3151c1; $custom-light: #7e81d5; $custom-dark: #000000;
JSON
{
"hex": "#3151c1",
"rgb": {
"r": 49,
"g": 81,
"b": 193
},
"hsl": {
"h": 226.667,
"s": 59.504,
"l": 47.451
},
"oklch": {
"l": 0.48057,
"c": 0.17926,
"h": 267.1
},
"luminance": 0.10388
}Semantic roles & 50–950 ramp
primary
#3151C1
secondary
#CCBB82
accent
#C045E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83