#304BB0#304BB0
#304BB0 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.164 H 267.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).
Color values
| HEX | #304BB0 |
|---|---|
| RGB | rgb(48, 75, 176) |
| HSL | hsl(227, 57%, 44%) |
| HSV | hsv(227, 73%, 69%) |
| CMYK | cmyk(72.7%, 57.4%, 0%, 31%) |
| CIE-LAB | lab(35.58, 25.45, -56.83) |
| CIE-LCH | lch(35.58, 62.26, 294.12°) |
| OKLab | oklab(45.43% -0.0061 -0.1638) |
| OKLCH | oklch(45.43% 0.164 267.9) |
| XYZ | xyz(11.5688, 8.7939, 42.1536) |
| Luminance | 0.0880 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.40
Sapphire
#0F52BA
ΔE00 3.95
Blue Blue
#2242C7
ΔE00 4.21
Cobalt (survey)
#1E488F
ΔE00 5.59
Sapphire (survey)
#2138AB
ΔE00 5.74
Ocean Blue
#4F42B5
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BB0 #B09530
analogous
#308BB0 #304BB0 #5530B0
triadic
#304BB0 #B0304B #4BB030
tetradic
#304BB0 #B0308B #B09530 #30B055
square
#304BB0 #B0308B #B09530 #30B055
split-complementary
#304BB0 #B05530 #8BB030
monochromatic
#162250 #233780 #304BB0 #4E69CF #7E92DC
Accessibility & contrast
On white
7.61
#304BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#304BB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BB0
7.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BB0 | 1.00 | 7.61 | 2.76 | 7.61 |
| #FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304bb0; /* rgb */ color: rgb(48, 75, 176); /* oklch */ color: oklch(45.4% 0.164 267.9);
Tailwind
colors: {
custom: {
50: '#7a7cc8',
500: '#304bb0',
950: '#000000',
},
}SCSS
$custom: #304bb0; $custom-light: #7a7cc8; $custom-dark: #000000;
JSON
{
"hex": "#304bb0",
"rgb": {
"r": 48,
"g": 75,
"b": 176
},
"hsl": {
"h": 227.344,
"s": 57.143,
"l": 43.922
},
"oklch": {
"l": 0.45427,
"c": 0.16394,
"h": 267.9
},
"luminance": 0.08795
}Semantic roles & 50–950 ramp
primary
#304BB0
secondary
#C5B477
accent
#C047E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82