#3042AB#3042AB
#3042AB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.168 H 270.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #3042AB |
|---|---|
| RGB | rgb(48, 66, 171) |
| HSL | hsl(231, 56%, 43%) |
| HSV | hsv(231, 72%, 67%) |
| CMYK | cmyk(71.9%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.84, 29.51, -58.32) |
| CIE-LCH | lch(32.84, 65.36, 296.84°) |
| OKLab | oklab(43.26% 0.0007 -0.1683) |
| OKLCH | oklch(43.26% 0.168 270.3) |
| XYZ | xyz(10.5153, 7.4640, 39.4067) |
| Luminance | 0.0746 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Blue Blue
#2242C7
ΔE00 3.70
Cobalt
#0047AB
ΔE00 4.38
Blueberry
#464196
ΔE00 4.74
Ocean Blue
#4F42B5
ΔE00 4.87
Cobalt (survey)
#1E488F
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3042AB #AB9930
analogous
#307FAB #3042AB #5C30AB
triadic
#3042AB #AB3042 #42AB30
tetradic
#3042AB #AB307F #AB9930 #30AB5C
square
#3042AB #AB307F #AB9930 #30AB5C
split-complementary
#3042AB #AB5C30 #7FAB30
monochromatic
#151D4B #23307B #3042AB #4C5ECD #7B89DA
Accessibility & contrast
On white
8.42
#3042AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#3042AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3042AB
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3042AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3042AB | 1.00 | 8.42 | 2.49 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #3042ab; /* rgb */ color: rgb(48, 66, 171); /* oklch */ color: oklch(43.3% 0.168 270.3);
Tailwind
colors: {
custom: {
50: '#7976c5',
500: '#3042ab',
950: '#000000',
},
}SCSS
$custom: #3042ab; $custom-light: #7976c5; $custom-dark: #000000;
JSON
{
"hex": "#3042ab",
"rgb": {
"r": 48,
"g": 66,
"b": 171
},
"hsl": {
"h": 231.22,
"s": 56.164,
"l": 42.941
},
"oklch": {
"l": 0.43258,
"c": 0.16833,
"h": 270.3
},
"luminance": 0.07465
}Semantic roles & 50–950 ramp
primary
#3042AB
secondary
#C3B774
accent
#C948DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82