#304AB3#304AB3
#304AB3 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.169 H 268.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).
Color values
| HEX | #304AB3 |
|---|---|
| RGB | rgb(48, 74, 179) |
| HSL | hsl(228, 58%, 45%) |
| HSV | hsv(228, 73%, 70%) |
| CMYK | cmyk(73.2%, 58.7%, 0%, 29.8%) |
| CIE-LAB | lab(35.56, 27.22, -58.65) |
| CIE-LCH | lch(35.56, 64.66, 294.90°) |
| OKLab | oklab(45.48% -0.0052 -0.1692) |
| OKLCH | oklch(45.48% 0.169 268.2) |
| XYZ | xyz(11.8016, 8.7794, 43.7117) |
| Luminance | 0.0878 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.64
Blue Blue
#2242C7
ΔE00 3.64
Sapphire
#0F52BA
ΔE00 4.24
Sapphire (survey)
#2138AB
ΔE00 5.42
Ocean Blue
#4F42B5
ΔE00 5.75
Blue (survey)
#0343DF
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AB3 #B39930
analogous
#308BB3 #304AB3 #5830B3
triadic
#304AB3 #B3304A #4AB330
tetradic
#304AB3 #B3308B #B39930 #30B358
square
#304AB3 #B3308B #B39930 #30B358
split-complementary
#304AB3 #B35830 #8BB330
monochromatic
#162252 #233683 #304AB3 #506AD0 #8093DD
Accessibility & contrast
On white
7.62
#304AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#304AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AB3
7.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AB3 | 1.00 | 7.62 | 2.76 | 7.62 |
| #FFFFFF | 7.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304ab3; /* rgb */ color: rgb(48, 74, 179); /* oklch */ color: oklch(45.5% 0.169 268.2);
Tailwind
colors: {
custom: {
50: '#7b7ccb',
500: '#304ab3',
950: '#000000',
},
}SCSS
$custom: #304ab3; $custom-light: #7b7ccb; $custom-dark: #000000;
JSON
{
"hex": "#304ab3",
"rgb": {
"r": 48,
"g": 74,
"b": 179
},
"hsl": {
"h": 228.092,
"s": 57.709,
"l": 44.51
},
"oklch": {
"l": 0.45479,
"c": 0.16929,
"h": 268.2
},
"luminance": 0.08781
}Semantic roles & 50–950 ramp
primary
#304AB3
secondary
#C6B779
accent
#C247E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82