#3151C2#3151C2
#3151C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.181 H 267.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).
Color values
| HEX | #3151C2 |
|---|---|
| RGB | rgb(49, 81, 194) |
| HSL | hsl(227, 60%, 48%) |
| HSV | hsv(227, 75%, 76%) |
| CMYK | cmyk(74.7%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(38.61, 28.33, -62.49) |
| CIE-LCH | lch(38.61, 68.61, 294.39°) |
| OKLab | oklab(48.14% -0.009 -0.1804) |
| OKLCH | oklch(48.14% 0.181 267.1) |
| XYZ | xyz(13.9433, 10.4314, 52.3071) |
| Luminance | 0.1043 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.40
Blue Blue
#2242C7
ΔE00 4.60
Warm Blue
#4B57DB
ΔE00 5.18
Blue (survey)
#0343DF
ΔE00 5.31
Cobalt
#0047AB
ΔE00 5.32
Azul
#1D5DEC
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151C2 #C2A231
analogous
#3199C2 #3151C2 #5A31C2
triadic
#3151C2 #C23151 #51C231
tetradic
#3151C2 #C23199 #C2A231 #31C25A
square
#3151C2 #C23199 #C2A231 #31C25A
split-complementary
#3151C2 #C25A31 #99C231
monochromatic
#182860 #253D91 #3151C2 #5B76D6 #8C9FE2
Accessibility & contrast
On white
6.80
#3151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#3151C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151C2
6.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151C2 | 1.00 | 6.80 | 3.09 | 6.80 |
| #FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3151c2; /* rgb */ color: rgb(49, 81, 194); /* oklch */ color: oklch(48.1% 0.181 267.1);
Tailwind
colors: {
custom: {
50: '#7e81d5',
500: '#3151c2',
950: '#000000',
},
}SCSS
$custom: #3151c2; $custom-light: #7e81d5; $custom-dark: #000000;
JSON
{
"hex": "#3151c2",
"rgb": {
"r": 49,
"g": 81,
"b": 194
},
"hsl": {
"h": 226.759,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.4814,
"c": 0.1806,
"h": 267.1
},
"luminance": 0.10433
}Semantic roles & 50–950 ramp
primary
#3151C2
secondary
#CCBC83
accent
#C045E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83