#304FBA#304FBA
#304FBA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.173 H 267.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #304FBA |
|---|---|
| RGB | rgb(48, 79, 186) |
| HSL | hsl(227, 59%, 46%) |
| HSV | hsv(227, 74%, 73%) |
| CMYK | cmyk(74.2%, 57.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.42, 26.55, -59.75) |
| CIE-LCH | lch(37.42, 65.38, 293.95°) |
| OKLab | oklab(47.04% -0.0087 -0.1724) |
| OKLCH | oklch(47.04% 0.173 267.1) |
| XYZ | xyz(12.8747, 9.7641, 47.6510) |
| Luminance | 0.0977 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.13
Cobalt
#0047AB
ΔE00 4.31
Blue Blue
#2242C7
ΔE00 4.38
Blue (survey)
#0343DF
ΔE00 5.71
Warm Blue
#4B57DB
ΔE00 6.27
Ocean Blue
#4F42B5
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304FBA #BA9B30
analogous
#3094BA #304FBA #5630BA
triadic
#304FBA #BA304F #4FBA30
tetradic
#304FBA #BA3094 #BA9B30 #30BA56
square
#304FBA #BA3094 #BA9B30 #30BA56
split-complementary
#304FBA #BA5630 #94BA30
monochromatic
#172659 #233A89 #304FBA #5471D3 #8599DF
Accessibility & contrast
On white
7.11
#304FBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#304FBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304FBA
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304FBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304FBA | 1.00 | 7.11 | 2.95 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #304fba; /* rgb */ color: rgb(48, 79, 186); /* oklch */ color: oklch(47.0% 0.173 267.1);
Tailwind
colors: {
custom: {
50: '#7c7fd0',
500: '#304fba',
950: '#000000',
},
}SCSS
$custom: #304fba; $custom-light: #7c7fd0; $custom-dark: #000000;
JSON
{
"hex": "#304fba",
"rgb": {
"r": 48,
"g": 79,
"b": 186
},
"hsl": {
"h": 226.522,
"s": 58.974,
"l": 45.882
},
"oklch": {
"l": 0.47042,
"c": 0.17258,
"h": 267.1
},
"luminance": 0.09766
}Semantic roles & 50–950 ramp
primary
#304FBA
secondary
#C9B87D
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82