#304FB3#304FB3
#304FB3 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.163 H 266.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #304FB3 |
|---|---|
| RGB | rgb(48, 79, 179) |
| HSL | hsl(226, 58%, 45%) |
| HSV | hsv(226, 73%, 70%) |
| CMYK | cmyk(73.2%, 55.9%, 0%, 29.8%) |
| CIE-LAB | lab(36.88, 23.93, -56.50) |
| CIE-LCH | lch(36.88, 61.36, 292.96°) |
| OKLab | oklab(46.47% -0.0091 -0.1628) |
| OKLCH | oklch(46.47% 0.163 266.8) |
| XYZ | xyz(12.1488, 9.4737, 43.8274) |
| Luminance | 0.0948 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.94
Cobalt
#0047AB
ΔE00 3.78
Blue Blue
#2242C7
ΔE00 4.95
Cobalt (survey)
#1E488F
ΔE00 5.85
Denim Blue
#3B5B92
ΔE00 6.20
Dusk Blue
#26538D
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304FB3 #B39430
analogous
#3090B3 #304FB3 #5330B3
triadic
#304FB3 #B3304F #4FB330
tetradic
#304FB3 #B33090 #B39430 #30B353
square
#304FB3 #B33090 #B39430 #30B353
split-complementary
#304FB3 #B35330 #90B330
monochromatic
#162452 #233A83 #304FB3 #506ED0 #8096DD
Accessibility & contrast
On white
7.25
#304FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#304FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304FB3
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304FB3 | 1.00 | 7.25 | 2.89 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #304fb3; /* rgb */ color: rgb(48, 79, 179); /* oklch */ color: oklch(46.5% 0.163 266.8);
Tailwind
colors: {
custom: {
50: '#7a7fca',
500: '#304fb3',
950: '#000000',
},
}SCSS
$custom: #304fb3; $custom-light: #7a7fca; $custom-dark: #000000;
JSON
{
"hex": "#304fb3",
"rgb": {
"r": 48,
"g": 79,
"b": 179
},
"hsl": {
"h": 225.802,
"s": 57.709,
"l": 44.51
},
"oklch": {
"l": 0.46472,
"c": 0.16305,
"h": 266.8
},
"luminance": 0.09475
}Semantic roles & 50–950 ramp
primary
#304FB3
secondary
#C6B479
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82