#304CB3#304CB3
#304CB3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.167 H 267.7°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB3 |
|---|---|
| RGB | rgb(48, 76, 179) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 73%, 70%) |
| CMYK | cmyk(73.2%, 57.5%, 0%, 29.8%) |
| CIE-LAB | lab(36.08, 25.90, -57.79) |
| CIE-LCH | lch(36.08, 63.33, 294.14°) |
| OKLab | oklab(45.87% -0.0067 -0.1667) |
| OKLCH | oklch(45.87% 0.167 267.7) |
| XYZ | xyz(11.9372, 9.0507, 43.7569) |
| Luminance | 0.0905 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.60
Sapphire
#0F52BA
ΔE00 3.69
Blue Blue
#2242C7
ΔE00 4.13
Cobalt (survey)
#1E488F
ΔE00 5.91
Blue (survey)
#0343DF
ΔE00 6.05
Sapphire (survey)
#2138AB
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB3 #B39730
analogous
#308DB3 #304CB3 #5630B3
triadic
#304CB3 #B3304C #4CB330
tetradic
#304CB3 #B3308D #B39730 #30B356
square
#304CB3 #B3308D #B39730 #30B356
split-complementary
#304CB3 #B35630 #8DB330
monochromatic
#162352 #233883 #304CB3 #506BD0 #8094DD
Accessibility & contrast
On white
7.47
#304CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#304CB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB3
7.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB3 | 1.00 | 7.47 | 2.81 | 7.47 |
| #FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304cb3; /* rgb */ color: rgb(48, 76, 179); /* oklch */ color: oklch(45.9% 0.167 267.7);
Tailwind
colors: {
custom: {
50: '#7a7dcb',
500: '#304cb3',
950: '#000000',
},
}SCSS
$custom: #304cb3; $custom-light: #7a7dcb; $custom-dark: #000000;
JSON
{
"hex": "#304cb3",
"rgb": {
"r": 48,
"g": 76,
"b": 179
},
"hsl": {
"h": 227.176,
"s": 57.709,
"l": 44.51
},
"oklch": {
"l": 0.45872,
"c": 0.1668,
"h": 267.7
},
"luminance": 0.09052
}Semantic roles & 50–950 ramp
primary
#304CB3
secondary
#C6B679
accent
#C047E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82