#304DB4#304DB4
#304DB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.167 H 267.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #304DB4 |
|---|---|
| RGB | rgb(48, 77, 180) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 73%, 71%) |
| CMYK | cmyk(73.3%, 57.2%, 0%, 29.4%) |
| CIE-LAB | lab(36.42, 25.62, -57.83) |
| CIE-LCH | lch(36.42, 63.25, 293.90°) |
| OKLab | oklab(46.15% -0.0074 -0.1667) |
| OKLCH | oklch(46.15% 0.167 267.4) |
| XYZ | xyz(12.1082, 9.2301, 44.3146) |
| Luminance | 0.0923 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.44
Cobalt
#0047AB
ΔE00 3.70
Blue Blue
#2242C7
ΔE00 4.30
Cobalt (survey)
#1E488F
ΔE00 6.00
Blue (survey)
#0343DF
ΔE00 6.07
Sapphire (survey)
#2138AB
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304DB4 #B49730
analogous
#308FB4 #304DB4 #5530B4
triadic
#304DB4 #B4304D #4DB430
tetradic
#304DB4 #B4308F #B49730 #30B455
square
#304DB4 #B4308F #B49730 #30B455
split-complementary
#304DB4 #B45530 #8FB430
monochromatic
#162453 #233884 #304DB4 #516DD1 #8195DD
Accessibility & contrast
On white
7.38
#304DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#304DB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304DB4
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304DB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304DB4 | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #304db4; /* rgb */ color: rgb(48, 77, 180); /* oklch */ color: oklch(46.2% 0.167 267.4);
Tailwind
colors: {
custom: {
50: '#7b7ecb',
500: '#304db4',
950: '#000000',
},
}SCSS
$custom: #304db4; $custom-light: #7b7ecb; $custom-dark: #000000;
JSON
{
"hex": "#304db4",
"rgb": {
"r": 48,
"g": 77,
"b": 180
},
"hsl": {
"h": 226.818,
"s": 57.895,
"l": 44.706
},
"oklch": {
"l": 0.46153,
"c": 0.16692,
"h": 267.4
},
"luminance": 0.09231
}Semantic roles & 50–950 ramp
primary
#304DB4
secondary
#C6B679
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82