#304CB2#304CB2
#304CB2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.165 H 267.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB2 |
|---|---|
| RGB | rgb(48, 76, 178) |
| HSL | hsl(227, 58%, 44%) |
| HSV | hsv(227, 73%, 70%) |
| CMYK | cmyk(73%, 57.3%, 0%, 30.2%) |
| CIE-LAB | lab(36.00, 25.53, -57.33) |
| CIE-LCH | lch(36.00, 62.76, 294.01°) |
| OKLab | oklab(45.79% -0.0068 -0.1653) |
| OKLCH | oklch(45.79% 0.165 267.7) |
| XYZ | xyz(11.8365, 9.0104, 43.2262) |
| Luminance | 0.0901 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.53
Sapphire
#0F52BA
ΔE00 3.68
Blue Blue
#2242C7
ΔE00 4.24
Cobalt (survey)
#1E488F
ΔE00 5.78
Sapphire (survey)
#2138AB
ΔE00 6.06
Blue (survey)
#0343DF
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB2 #B29630
analogous
#308DB2 #304CB2 #5530B2
triadic
#304CB2 #B2304C #4CB230
tetradic
#304CB2 #B2308D #B29630 #30B255
square
#304CB2 #B2308D #B29630 #30B255
split-complementary
#304CB2 #B25530 #8DB230
monochromatic
#162352 #233782 #304CB2 #506BD0 #8094DD
Accessibility & contrast
On white
7.49
#304CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#304CB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB2
7.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB2 | 1.00 | 7.49 | 2.80 | 7.49 |
| #FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304cb2; /* rgb */ color: rgb(48, 76, 178); /* oklch */ color: oklch(45.8% 0.165 267.7);
Tailwind
colors: {
custom: {
50: '#7a7dca',
500: '#304cb2',
950: '#000000',
},
}SCSS
$custom: #304cb2; $custom-light: #7a7dca; $custom-dark: #000000;
JSON
{
"hex": "#304cb2",
"rgb": {
"r": 48,
"g": 76,
"b": 178
},
"hsl": {
"h": 227.077,
"s": 57.522,
"l": 44.314
},
"oklch": {
"l": 0.4579,
"c": 0.16544,
"h": 267.7
},
"luminance": 0.09012
}Semantic roles & 50–950 ramp
primary
#304CB2
secondary
#C6B578
accent
#C047E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82