#304CB6#304CB6
#304CB6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.171 H 267.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB6 |
|---|---|
| RGB | rgb(48, 76, 182) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 74%, 71%) |
| CMYK | cmyk(73.6%, 58.2%, 0%, 28.6%) |
| CIE-LAB | lab(36.32, 27.02, -59.18) |
| CIE-LCH | lch(36.32, 65.06, 294.54°) |
| OKLab | oklab(46.12% -0.0066 -0.1708) |
| OKLCH | oklch(46.12% 0.171 267.8) |
| XYZ | xyz(12.2439, 9.1734, 45.3723) |
| Luminance | 0.0917 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.74
Blue Blue
#2242C7
ΔE00 3.83
Cobalt
#0047AB
ΔE00 3.84
Blue (survey)
#0343DF
ΔE00 5.66
Sapphire (survey)
#2138AB
ΔE00 6.08
Ocean Blue
#4F42B5
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB6 #B69A30
analogous
#308FB6 #304CB6 #5730B6
triadic
#304CB6 #B6304C #4CB630
tetradic
#304CB6 #B6308F #B69A30 #30B657
square
#304CB6 #B6308F #B69A30 #30B657
split-complementary
#304CB6 #B65730 #8FB630
monochromatic
#162455 #233886 #304CB6 #526CD1 #8295DE
Accessibility & contrast
On white
7.41
#304CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#304CB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB6
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB6 | 1.00 | 7.41 | 2.83 | 7.41 |
| #FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304cb6; /* rgb */ color: rgb(48, 76, 182); /* oklch */ color: oklch(46.1% 0.171 267.8);
Tailwind
colors: {
custom: {
50: '#7b7dcd',
500: '#304cb6',
950: '#000000',
},
}SCSS
$custom: #304cb6; $custom-light: #7b7dcd; $custom-dark: #000000;
JSON
{
"hex": "#304cb6",
"rgb": {
"r": 48,
"g": 76,
"b": 182
},
"hsl": {
"h": 227.463,
"s": 58.261,
"l": 45.098
},
"oklch": {
"l": 0.46121,
"c": 0.17088,
"h": 267.8
},
"luminance": 0.09175
}Semantic roles & 50–950 ramp
primary
#304CB6
secondary
#C7B77B
accent
#C146E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82