#304FB1#304FB1
#304FB1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.160 H 266.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #304FB1 |
|---|---|
| RGB | rgb(48, 79, 177) |
| HSL | hsl(226, 57%, 44%) |
| HSV | hsv(226, 73%, 69%) |
| CMYK | cmyk(72.9%, 55.4%, 0%, 30.6%) |
| CIE-LAB | lab(36.73, 23.18, -55.56) |
| CIE-LCH | lch(36.73, 60.20, 292.65°) |
| OKLab | oklab(46.31% -0.0092 -0.16) |
| OKLCH | oklch(46.31% 0.16 266.7) |
| XYZ | xyz(11.9480, 9.3934, 42.7699) |
| Luminance | 0.0940 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.94
Cobalt
#0047AB
ΔE00 3.66
Blue Blue
#2242C7
ΔE00 5.14
Cobalt (survey)
#1E488F
ΔE00 5.60
Denim Blue
#3B5B92
ΔE00 6.01
Dusk Blue
#26538D
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304FB1 #B19230
analogous
#3090B1 #304FB1 #5130B1
triadic
#304FB1 #B1304F #4FB130
tetradic
#304FB1 #B13090 #B19230 #30B151
square
#304FB1 #B13090 #B19230 #30B151
split-complementary
#304FB1 #B15130 #90B130
monochromatic
#162451 #233A81 #304FB1 #4F6ECF #7F95DC
Accessibility & contrast
On white
7.29
#304FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#304FB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304FB1
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304FB1 | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #304fb1; /* rgb */ color: rgb(48, 79, 177); /* oklch */ color: oklch(46.3% 0.160 266.7);
Tailwind
colors: {
custom: {
50: '#7a7fc9',
500: '#304fb1',
950: '#000000',
},
}SCSS
$custom: #304fb1; $custom-light: #7a7fc9; $custom-dark: #000000;
JSON
{
"hex": "#304fb1",
"rgb": {
"r": 48,
"g": 79,
"b": 177
},
"hsl": {
"h": 225.581,
"s": 57.333,
"l": 44.118
},
"oklch": {
"l": 0.46312,
"c": 0.1603,
"h": 266.7
},
"luminance": 0.09395
}Semantic roles & 50–950 ramp
primary
#304FB1
secondary
#C5B378
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82