#3042B5#3042B5
#3042B5 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.182 H 270.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #3042B5 |
|---|---|
| RGB | rgb(48, 66, 181) |
| HSL | hsl(232, 58%, 45%) |
| HSV | hsv(232, 73%, 71%) |
| CMYK | cmyk(73.5%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(33.69, 33.16, -62.88) |
| CIE-LCH | lch(33.69, 71.09, 297.80°) |
| OKLab | oklab(44.15% 0.0005 -0.1817) |
| OKLCH | oklch(44.15% 0.182 270.1) |
| XYZ | xyz(11.5048, 7.8598, 44.6179) |
| Luminance | 0.0786 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.37
Sapphire (survey)
#2138AB
ΔE00 3.23
Ocean Blue
#4F42B5
ΔE00 4.29
Cobalt
#0047AB
ΔE00 4.92
Blue (survey)
#0343DF
ΔE00 5.18
Blueberry
#464196
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3042B5 #B5A330
analogous
#3084B5 #3042B5 #6130B5
triadic
#3042B5 #B53042 #42B530
tetradic
#3042B5 #B53084 #B5A330 #30B561
square
#3042B5 #B53084 #B5A330 #30B561
split-complementary
#3042B5 #B56130 #84B530
monochromatic
#161F54 #233085 #3042B5 #5163D1 #828EDE
Accessibility & contrast
On white
8.16
#3042B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#3042B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3042B5
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3042B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3042B5 | 1.00 | 8.16 | 2.57 | 8.16 |
| #FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #3042b5; /* rgb */ color: rgb(48, 66, 181); /* oklch */ color: oklch(44.1% 0.182 270.1);
Tailwind
colors: {
custom: {
50: '#7c76cc',
500: '#3042b5',
950: '#000000',
},
}SCSS
$custom: #3042b5; $custom-light: #7c76cc; $custom-dark: #000000;
JSON
{
"hex": "#3042b5",
"rgb": {
"r": 48,
"g": 66,
"b": 181
},
"hsl": {
"h": 231.88,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.44147,
"c": 0.18171,
"h": 270.1
},
"luminance": 0.07861
}Semantic roles & 50–950 ramp
primary
#3042B5
secondary
#C7BC7A
accent
#CC46E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82