#304FB5#304FB5
#304FB5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.166 H 266.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #304FB5 |
|---|---|
| RGB | rgb(48, 79, 181) |
| HSL | hsl(226, 58%, 45%) |
| HSV | hsv(226, 73%, 71%) |
| CMYK | cmyk(73.5%, 56.4%, 0%, 29%) |
| CIE-LAB | lab(37.03, 24.68, -57.43) |
| CIE-LCH | lch(37.03, 62.51, 293.25°) |
| OKLab | oklab(46.63% -0.0089 -0.1655) |
| OKLCH | oklch(46.63% 0.166 266.9) |
| XYZ | xyz(12.3525, 9.5552, 44.9004) |
| Luminance | 0.0956 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.96
Cobalt
#0047AB
ΔE00 3.91
Blue Blue
#2242C7
ΔE00 4.77
Cobalt (survey)
#1E488F
ΔE00 6.11
Blue (survey)
#0343DF
ΔE00 6.29
Denim Blue
#3B5B92
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304FB5 #B59630
analogous
#3092B5 #304FB5 #5330B5
triadic
#304FB5 #B5304F #4FB530
tetradic
#304FB5 #B53092 #B59630 #30B553
square
#304FB5 #B53092 #B59630 #30B553
split-complementary
#304FB5 #B55330 #92B530
monochromatic
#162554 #233A85 #304FB5 #516FD1 #8297DE
Accessibility & contrast
On white
7.21
#304FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#304FB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304FB5
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304FB5 | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #304fb5; /* rgb */ color: rgb(48, 79, 181); /* oklch */ color: oklch(46.6% 0.166 266.9);
Tailwind
colors: {
custom: {
50: '#7b7fcc',
500: '#304fb5',
950: '#000000',
},
}SCSS
$custom: #304fb5; $custom-light: #7b7fcc; $custom-dark: #000000;
JSON
{
"hex": "#304fb5",
"rgb": {
"r": 48,
"g": 79,
"b": 181
},
"hsl": {
"h": 226.015,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.46633,
"c": 0.16579,
"h": 266.9
},
"luminance": 0.09557
}Semantic roles & 50–950 ramp
primary
#304FB5
secondary
#C7B57A
accent
#BD46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82