#304BB5#304BB5
#304BB5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.171 H 268.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #304BB5 |
|---|---|
| RGB | rgb(48, 75, 181) |
| HSL | hsl(228, 58%, 45%) |
| HSV | hsv(228, 73%, 71%) |
| CMYK | cmyk(73.5%, 58.6%, 0%, 29%) |
| CIE-LAB | lab(35.98, 27.30, -59.15) |
| CIE-LCH | lch(35.98, 65.15, 294.78°) |
| OKLab | oklab(45.84% -0.0059 -0.1707) |
| OKLCH | oklch(45.84% 0.171 268) |
| XYZ | xyz(12.0726, 8.9955, 44.8071) |
| Luminance | 0.0900 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.67
Cobalt
#0047AB
ΔE00 3.76
Sapphire
#0F52BA
ΔE00 3.99
Blue (survey)
#0343DF
ΔE00 5.65
Sapphire (survey)
#2138AB
ΔE00 5.76
Ocean Blue
#4F42B5
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BB5 #B59A30
analogous
#308DB5 #304BB5 #5830B5
triadic
#304BB5 #B5304B #4BB530
tetradic
#304BB5 #B5308D #B59A30 #30B558
square
#304BB5 #B5308D #B59A30 #30B558
split-complementary
#304BB5 #B55830 #8DB530
monochromatic
#162354 #233785 #304BB5 #516BD1 #8294DE
Accessibility & contrast
On white
7.50
#304BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#304BB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BB5
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BB5 | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304bb5; /* rgb */ color: rgb(48, 75, 181); /* oklch */ color: oklch(45.8% 0.171 268.0);
Tailwind
colors: {
custom: {
50: '#7b7dcc',
500: '#304bb5',
950: '#000000',
},
}SCSS
$custom: #304bb5; $custom-light: #7b7dcc; $custom-dark: #000000;
JSON
{
"hex": "#304bb5",
"rgb": {
"r": 48,
"g": 75,
"b": 181
},
"hsl": {
"h": 227.82,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.45842,
"c": 0.17076,
"h": 268
},
"luminance": 0.08997
}Semantic roles & 50–950 ramp
primary
#304BB5
secondary
#C7B77A
accent
#C246E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82