#304CB5#304CB5
#304CB5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.170 H 267.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB5 |
|---|---|
| RGB | rgb(48, 76, 181) |
| HSL | hsl(227, 58%, 45%) |
| HSV | hsv(227, 73%, 71%) |
| CMYK | cmyk(73.5%, 58%, 0%, 29%) |
| CIE-LAB | lab(36.24, 26.65, -58.72) |
| CIE-LCH | lch(36.24, 64.49, 294.41°) |
| OKLab | oklab(46.04% -0.0066 -0.1694) |
| OKLCH | oklch(46.04% 0.17 267.8) |
| XYZ | xyz(12.1410, 9.1322, 44.8299) |
| Luminance | 0.0913 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.72
Cobalt
#0047AB
ΔE00 3.75
Blue Blue
#2242C7
ΔE00 3.93
Blue (survey)
#0343DF
ΔE00 5.79
Sapphire (survey)
#2138AB
ΔE00 6.07
Ocean Blue
#4F42B5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB5 #B59930
analogous
#308FB5 #304CB5 #5630B5
triadic
#304CB5 #B5304C #4CB530
tetradic
#304CB5 #B5308F #B59930 #30B556
square
#304CB5 #B5308F #B59930 #30B556
split-complementary
#304CB5 #B55630 #8FB530
monochromatic
#162354 #233885 #304CB5 #516CD1 #8295DE
Accessibility & contrast
On white
7.43
#304CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#304CB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB5
7.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB5 | 1.00 | 7.43 | 2.83 | 7.43 |
| #FFFFFF | 7.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304cb5; /* rgb */ color: rgb(48, 76, 181); /* oklch */ color: oklch(46.0% 0.170 267.8);
Tailwind
colors: {
custom: {
50: '#7b7dcc',
500: '#304cb5',
950: '#000000',
},
}SCSS
$custom: #304cb5; $custom-light: #7b7dcc; $custom-dark: #000000;
JSON
{
"hex": "#304cb5",
"rgb": {
"r": 48,
"g": 76,
"b": 181
},
"hsl": {
"h": 227.368,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.46038,
"c": 0.16952,
"h": 267.8
},
"luminance": 0.09133
}Semantic roles & 50–950 ramp
primary
#304CB5
secondary
#C7B77A
accent
#C146E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82