#3158CF#3158CF
#3158CF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.189 H 265.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3158CF |
|---|---|
| RGB | rgb(49, 88, 207) |
| HSL | hsl(225, 62%, 50%) |
| HSV | hsv(225, 76%, 81%) |
| CMYK | cmyk(76.3%, 57.5%, 0%, 18.8%) |
| CIE-LAB | lab(41.43, 28.62, -65.42) |
| CIE-LCH | lch(41.43, 71.41, 293.63°) |
| OKLab | oklab(50.57% -0.0134 -0.1889) |
| OKLCH | oklch(50.57% 0.189 265.9) |
| XYZ | xyz(16.0149, 12.1356, 60.5178) |
| Luminance | 0.1214 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Azul
#1D5DEC
ΔE00 3.81
Warm Blue
#4B57DB
ΔE00 3.94
Sapphire
#0F52BA
ΔE00 4.41
Denim
#1560BD
ΔE00 5.71
Electric Blue
#0652FF
ΔE00 5.73
Royal Blue
#4169E1
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158CF #CFA831
analogous
#31A7CF #3158CF #5931CF
triadic
#3158CF #CF3158 #58CF31
tetradic
#3158CF #CF31A7 #CFA831 #31CF59
square
#3158CF #CF31A7 #CFA831 #31CF59
split-complementary
#3158CF #CF5931 #A7CF31
monochromatic
#192E6C #25439E #3158CF #6380DB #94A8E6
Accessibility & contrast
On white
6.13
#3158CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#3158CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158CF
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158CF | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005BCD
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #3158cf; /* rgb */ color: rgb(49, 88, 207); /* oklch */ color: oklch(50.6% 0.189 265.9);
Tailwind
colors: {
custom: {
50: '#8086df',
500: '#3158cf',
950: '#000000',
},
}SCSS
$custom: #3158cf; $custom-light: #8086df; $custom-dark: #000000;
JSON
{
"hex": "#3158cf",
"rgb": {
"r": 49,
"g": 88,
"b": 207
},
"hsl": {
"h": 225.19,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.50571,
"c": 0.18935,
"h": 265.9
},
"luminance": 0.12137
}Semantic roles & 50–950 ramp
primary
#3158CF
secondary
#D1C08B
accent
#BD43E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83