#304BB6#304BB6
#304BB6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.172 H 268.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #304BB6 |
|---|---|
| RGB | rgb(48, 75, 182) |
| HSL | hsl(228, 58%, 45%) |
| HSV | hsv(228, 74%, 71%) |
| CMYK | cmyk(73.6%, 58.8%, 0%, 28.6%) |
| CIE-LAB | lab(36.05, 27.68, -59.61) |
| CIE-LCH | lch(36.05, 65.72, 294.91°) |
| OKLab | oklab(45.93% -0.0059 -0.172) |
| OKLCH | oklch(45.93% 0.172 268) |
| XYZ | xyz(12.1756, 9.0366, 45.3495) |
| Luminance | 0.0904 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.57
Cobalt
#0047AB
ΔE00 3.85
Sapphire
#0F52BA
ΔE00 4.01
Blue (survey)
#0343DF
ΔE00 5.52
Sapphire (survey)
#2138AB
ΔE00 5.77
Ocean Blue
#4F42B5
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BB6 #B69B30
analogous
#308EB6 #304BB6 #5830B6
triadic
#304BB6 #B6304B #4BB630
tetradic
#304BB6 #B6308E #B69B30 #30B658
square
#304BB6 #B6308E #B69B30 #30B658
split-complementary
#304BB6 #B65830 #8EB630
monochromatic
#162355 #233786 #304BB6 #526CD1 #8295DE
Accessibility & contrast
On white
7.48
#304BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#304BB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BB6
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BB6 | 1.00 | 7.48 | 2.81 | 7.48 |
| #FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304bb6; /* rgb */ color: rgb(48, 75, 182); /* oklch */ color: oklch(45.9% 0.172 268.0);
Tailwind
colors: {
custom: {
50: '#7b7dcd',
500: '#304bb6',
950: '#000000',
},
}SCSS
$custom: #304bb6; $custom-light: #7b7dcd; $custom-dark: #000000;
JSON
{
"hex": "#304bb6",
"rgb": {
"r": 48,
"g": 75,
"b": 182
},
"hsl": {
"h": 227.91,
"s": 58.261,
"l": 45.098
},
"oklch": {
"l": 0.45926,
"c": 0.17211,
"h": 268
},
"luminance": 0.09038
}Semantic roles & 50–950 ramp
primary
#304BB6
secondary
#C7B87B
accent
#C246E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82