#3151C0#3151C0
#3151C0 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.178 H 267.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #3151C0 |
|---|---|
| RGB | rgb(49, 81, 192) |
| HSL | hsl(227, 59%, 47%) |
| HSV | hsv(227, 74%, 75%) |
| CMYK | cmyk(74.5%, 57.8%, 0%, 24.7%) |
| CIE-LAB | lab(38.45, 27.59, -61.58) |
| CIE-LCH | lch(38.45, 67.48, 294.14°) |
| OKLab | oklab(47.97% -0.0091 -0.1777) |
| OKLCH | oklch(47.97% 0.178 267.1) |
| XYZ | xyz(13.7202, 10.3421, 51.1321) |
| Luminance | 0.1034 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.23
Blue Blue
#2242C7
ΔE00 4.67
Cobalt
#0047AB
ΔE00 5.12
Warm Blue
#4B57DB
ΔE00 5.41
Blue (survey)
#0343DF
ΔE00 5.50
Azul
#1D5DEC
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151C0 #C0A031
analogous
#3199C0 #3151C0 #5831C0
triadic
#3151C0 #C03151 #51C031
tetradic
#3151C0 #C03199 #C0A031 #31C058
square
#3151C0 #C03199 #C0A031 #31C058
split-complementary
#3151C0 #C05831 #99C031
monochromatic
#18285E #253C8F #3151C0 #5975D5 #8A9EE1
Accessibility & contrast
On white
6.84
#3151C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#3151C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151C0
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151C0 | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3151c0; /* rgb */ color: rgb(49, 81, 192); /* oklch */ color: oklch(48.0% 0.178 267.1);
Tailwind
colors: {
custom: {
50: '#7d81d4',
500: '#3151c0',
950: '#000000',
},
}SCSS
$custom: #3151c0; $custom-light: #7d81d4; $custom-dark: #000000;
JSON
{
"hex": "#3151c0",
"rgb": {
"r": 49,
"g": 81,
"b": 192
},
"hsl": {
"h": 226.573,
"s": 59.336,
"l": 47.255
},
"oklch": {
"l": 0.47974,
"c": 0.17792,
"h": 267.1
},
"luminance": 0.10344
}Semantic roles & 50–950 ramp
primary
#3151C0
secondary
#CBBB82
accent
#BF45E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83