#304BB7#304BB7
#304BB7 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.173 H 268.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).
Color values
| HEX | #304BB7 |
|---|---|
| RGB | rgb(48, 75, 183) |
| HSL | hsl(228, 58%, 45%) |
| HSV | hsv(228, 74%, 72%) |
| CMYK | cmyk(73.8%, 59%, 0%, 28.2%) |
| CIE-LAB | lab(36.13, 28.05, -60.07) |
| CIE-LCH | lch(36.13, 66.30, 295.03°) |
| OKLab | oklab(46.01% -0.0059 -0.1734) |
| OKLCH | oklch(46.01% 0.173 268.1) |
| XYZ | xyz(12.2793, 9.0781, 45.8957) |
| Luminance | 0.0908 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.47
Cobalt
#0047AB
ΔE00 3.93
Sapphire
#0F52BA
ΔE00 4.03
Blue (survey)
#0343DF
ΔE00 5.40
Sapphire (survey)
#2138AB
ΔE00 5.79
Ocean Blue
#4F42B5
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BB7 #B79C30
analogous
#308EB7 #304BB7 #5830B7
triadic
#304BB7 #B7304B #4BB730
tetradic
#304BB7 #B7308E #B79C30 #30B758
square
#304BB7 #B7308E #B79C30 #30B758
split-complementary
#304BB7 #B75830 #8EB730
monochromatic
#172356 #233787 #304BB7 #526CD2 #8395DE
Accessibility & contrast
On white
7.46
#304BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#304BB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BB7
7.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BB7 | 1.00 | 7.46 | 2.82 | 7.46 |
| #FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304bb7; /* rgb */ color: rgb(48, 75, 183); /* oklch */ color: oklch(46.0% 0.173 268.1);
Tailwind
colors: {
custom: {
50: '#7b7dcd',
500: '#304bb7',
950: '#000000',
},
}SCSS
$custom: #304bb7; $custom-light: #7b7dcd; $custom-dark: #000000;
JSON
{
"hex": "#304bb7",
"rgb": {
"r": 48,
"g": 75,
"b": 183
},
"hsl": {
"h": 228,
"s": 58.442,
"l": 45.294
},
"oklch": {
"l": 0.4601,
"c": 0.17346,
"h": 268.1
},
"luminance": 0.09079
}Semantic roles & 50–950 ramp
primary
#304BB7
secondary
#C8B87B
accent
#C346E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82