#304DB3#304DB3
#304DB3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.166 H 267.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #304DB3 |
|---|---|
| RGB | rgb(48, 77, 179) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 73%, 70%) |
| CMYK | cmyk(73.2%, 57%, 0%, 29.8%) |
| CIE-LAB | lab(36.35, 25.25, -57.36) |
| CIE-LCH | lch(36.35, 62.67, 293.76°) |
| OKLab | oklab(46.07% -0.0075 -0.1654) |
| OKLCH | oklch(46.07% 0.166 267.4) |
| XYZ | xyz(12.0067, 9.1895, 43.7801) |
| Luminance | 0.0919 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.42
Cobalt
#0047AB
ΔE00 3.63
Blue Blue
#2242C7
ΔE00 4.39
Cobalt (survey)
#1E488F
ΔE00 5.87
Blue (survey)
#0343DF
ΔE00 6.20
Sapphire (survey)
#2138AB
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304DB3 #B39630
analogous
#308EB3 #304DB3 #5530B3
triadic
#304DB3 #B3304D #4DB330
tetradic
#304DB3 #B3308E #B39630 #30B355
square
#304DB3 #B3308E #B39630 #30B355
split-complementary
#304DB3 #B35530 #8EB330
monochromatic
#162352 #233883 #304DB3 #506CD0 #8095DD
Accessibility & contrast
On white
7.40
#304DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#304DB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304DB3
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304DB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304DB3 | 1.00 | 7.40 | 2.84 | 7.40 |
| #FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304db3; /* rgb */ color: rgb(48, 77, 179); /* oklch */ color: oklch(46.1% 0.166 267.4);
Tailwind
colors: {
custom: {
50: '#7a7ecb',
500: '#304db3',
950: '#000000',
},
}SCSS
$custom: #304db3; $custom-light: #7a7ecb; $custom-dark: #000000;
JSON
{
"hex": "#304db3",
"rgb": {
"r": 48,
"g": 77,
"b": 179
},
"hsl": {
"h": 226.718,
"s": 57.709,
"l": 44.51
},
"oklch": {
"l": 0.46071,
"c": 0.16555,
"h": 267.4
},
"luminance": 0.09191
}Semantic roles & 50–950 ramp
primary
#304DB3
secondary
#C6B579
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82