#304AB7#304AB7
#304AB7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.8% C 0.175 H 268.3°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).
Color values
| HEX | #304AB7 |
|---|---|
| RGB | rgb(48, 74, 183) |
| HSL | hsl(228, 58%, 45%) |
| HSV | hsv(228, 74%, 72%) |
| CMYK | cmyk(73.8%, 59.6%, 0%, 28.2%) |
| CIE-LAB | lab(35.88, 28.70, -60.49) |
| CIE-LCH | lch(35.88, 66.96, 295.38°) |
| OKLab | oklab(45.82% -0.0051 -0.1746) |
| OKLCH | oklch(45.82% 0.175 268.3) |
| XYZ | xyz(12.2120, 8.9435, 45.8732) |
| Luminance | 0.0895 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.22
Cobalt
#0047AB
ΔE00 3.97
Sapphire
#0F52BA
ΔE00 4.31
Blue (survey)
#0343DF
ΔE00 5.27
Sapphire (survey)
#2138AB
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AB7 #B79D30
analogous
#308EB7 #304AB7 #5930B7
triadic
#304AB7 #B7304A #4AB730
tetradic
#304AB7 #B7308E #B79D30 #30B759
square
#304AB7 #B7308E #B79D30 #30B759
split-complementary
#304AB7 #B75930 #8EB730
monochromatic
#172356 #233687 #304AB7 #526BD2 #8395DE
Accessibility & contrast
On white
7.53
#304AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#304AB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AB7
7.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AB7 | 1.00 | 7.53 | 2.79 | 7.53 |
| #FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304ab7; /* rgb */ color: rgb(48, 74, 183); /* oklch */ color: oklch(45.8% 0.175 268.3);
Tailwind
colors: {
custom: {
50: '#7b7ccd',
500: '#304ab7',
950: '#000000',
},
}SCSS
$custom: #304ab7; $custom-light: #7b7ccd; $custom-dark: #000000;
JSON
{
"hex": "#304ab7",
"rgb": {
"r": 48,
"g": 74,
"b": 183
},
"hsl": {
"h": 228.444,
"s": 58.442,
"l": 45.294
},
"oklch": {
"l": 0.45817,
"c": 0.1747,
"h": 268.3
},
"luminance": 0.08945
}Semantic roles & 50–950 ramp
primary
#304AB7
secondary
#C8B97B
accent
#C446E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82