#304FB9#304FB9
#304FB9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.171 H 267.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #304FB9 |
|---|---|
| RGB | rgb(48, 79, 185) |
| HSL | hsl(226, 59%, 46%) |
| HSV | hsv(226, 74%, 73%) |
| CMYK | cmyk(74.1%, 57.3%, 0%, 27.5%) |
| CIE-LAB | lab(37.34, 26.17, -59.29) |
| CIE-LCH | lch(37.34, 64.81, 293.82°) |
| OKLab | oklab(46.96% -0.0088 -0.171) |
| OKLCH | oklch(46.96% 0.171 267.1) |
| XYZ | xyz(12.7688, 9.7218, 47.0931) |
| Luminance | 0.0972 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.09
Cobalt
#0047AB
ΔE00 4.23
Blue Blue
#2242C7
ΔE00 4.45
Blue (survey)
#0343DF
ΔE00 5.82
Warm Blue
#4B57DB
ΔE00 6.39
Cobalt (survey)
#1E488F
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304FB9 #B99A30
analogous
#3093B9 #304FB9 #5530B9
triadic
#304FB9 #B9304F #4FB930
tetradic
#304FB9 #B93093 #B99A30 #30B955
square
#304FB9 #B93093 #B99A30 #30B955
split-complementary
#304FB9 #B95530 #93B930
monochromatic
#172558 #233A88 #304FB9 #5470D3 #8499DF
Accessibility & contrast
On white
7.13
#304FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#304FB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304FB9
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304FB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304FB9 | 1.00 | 7.13 | 2.94 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #304fb9; /* rgb */ color: rgb(48, 79, 185); /* oklch */ color: oklch(47.0% 0.171 267.1);
Tailwind
colors: {
custom: {
50: '#7c7fcf',
500: '#304fb9',
950: '#000000',
},
}SCSS
$custom: #304fb9; $custom-light: #7c7fcf; $custom-dark: #000000;
JSON
{
"hex": "#304fb9",
"rgb": {
"r": 48,
"g": 79,
"b": 185
},
"hsl": {
"h": 226.423,
"s": 58.798,
"l": 45.686
},
"oklch": {
"l": 0.4696,
"c": 0.17123,
"h": 267.1
},
"luminance": 0.09723
}Semantic roles & 50–950 ramp
primary
#304FB9
secondary
#C9B77C
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82