#304CB4#304CB4
#304CB4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.168 H 267.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB4 |
|---|---|
| RGB | rgb(48, 76, 180) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 73%, 71%) |
| CMYK | cmyk(73.3%, 57.8%, 0%, 29.4%) |
| CIE-LAB | lab(36.16, 26.28, -58.26) |
| CIE-LCH | lch(36.16, 63.91, 294.28°) |
| OKLab | oklab(45.96% -0.0067 -0.168) |
| OKLCH | oklch(45.96% 0.168 267.7) |
| XYZ | xyz(12.0387, 9.0913, 44.2915) |
| Luminance | 0.0909 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.67
Sapphire
#0F52BA
ΔE00 3.70
Blue Blue
#2242C7
ΔE00 4.03
Blue (survey)
#0343DF
ΔE00 5.92
Cobalt (survey)
#1E488F
ΔE00 6.05
Sapphire (survey)
#2138AB
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB4 #B49830
analogous
#308EB4 #304CB4 #5630B4
triadic
#304CB4 #B4304C #4CB430
tetradic
#304CB4 #B4308E #B49830 #30B456
square
#304CB4 #B4308E #B49830 #30B456
split-complementary
#304CB4 #B45630 #8EB430
monochromatic
#162353 #233884 #304CB4 #516CD1 #8195DD
Accessibility & contrast
On white
7.45
#304CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#304CB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB4
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB4 | 1.00 | 7.45 | 2.82 | 7.45 |
| #FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304cb4; /* rgb */ color: rgb(48, 76, 180); /* oklch */ color: oklch(46.0% 0.168 267.7);
Tailwind
colors: {
custom: {
50: '#7b7dcb',
500: '#304cb4',
950: '#000000',
},
}SCSS
$custom: #304cb4; $custom-light: #7b7dcb; $custom-dark: #000000;
JSON
{
"hex": "#304cb4",
"rgb": {
"r": 48,
"g": 76,
"b": 180
},
"hsl": {
"h": 227.273,
"s": 57.895,
"l": 44.706
},
"oklch": {
"l": 0.45955,
"c": 0.16816,
"h": 267.7
},
"luminance": 0.09093
}Semantic roles & 50–950 ramp
primary
#304CB4
secondary
#C6B679
accent
#C047E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82