#3042C2#3042C2
#3042C2 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.199 H 269.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).
Color values
| HEX | #3042C2 |
|---|---|
| RGB | rgb(48, 66, 194) |
| HSL | hsl(233, 60%, 47%) |
| HSV | hsv(233, 75%, 76%) |
| CMYK | cmyk(75.3%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(34.84, 37.83, -68.65) |
| CIE-LCH | lch(34.84, 78.38, 298.85°) |
| OKLab | oklab(45.34% -0.0003 -0.1986) |
| OKLCH | oklch(45.34% 0.199 269.9) |
| XYZ | xyz(12.9014, 8.4185, 51.9735) |
| Luminance | 0.0842 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.10
Blue (survey)
#0343DF
ΔE00 3.58
Ocean Blue
#4F42B5
ΔE00 4.18
Sapphire (survey)
#2138AB
ΔE00 4.32
Blue With A Hint Of Purple
#533CC6
ΔE00 4.92
Blurple
#5539CC
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3042C2 #C2B030
analogous
#308BC2 #3042C2 #6730C2
triadic
#3042C2 #C23042 #42C230
tetradic
#3042C2 #C2308B #C2B030 #30C267
square
#3042C2 #C2308B #C2B030 #30C267
split-complementary
#3042C2 #C26730 #8BC230
monochromatic
#182160 #243191 #3042C2 #5969D6 #8A95E2
Accessibility & contrast
On white
7.82
#3042C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#3042C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3042C2
7.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3042C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3042C2 | 1.00 | 7.82 | 2.68 | 7.82 |
| #FFFFFF | 7.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004BC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #3042c2; /* rgb */ color: rgb(48, 66, 194); /* oklch */ color: oklch(45.3% 0.199 269.9);
Tailwind
colors: {
custom: {
50: '#7f76d6',
500: '#3042c2',
950: '#000000',
},
}SCSS
$custom: #3042c2; $custom-light: #7f76d6; $custom-dark: #000000;
JSON
{
"hex": "#3042c2",
"rgb": {
"r": 48,
"g": 66,
"b": 194
},
"hsl": {
"h": 232.603,
"s": 60.331,
"l": 47.451
},
"oklch": {
"l": 0.45343,
"c": 0.1986,
"h": 269.9
},
"luminance": 0.0842
}Semantic roles & 50–950 ramp
primary
#3042C2
secondary
#CCC382
accent
#D044E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83