#304CBA#304CBA
#304CBA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.5% C 0.176 H 267.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #304CBA |
|---|---|
| RGB | rgb(48, 76, 186) |
| HSL | hsl(228, 59%, 46%) |
| HSV | hsv(228, 74%, 73%) |
| CMYK | cmyk(74.2%, 59.1%, 0%, 27.1%) |
| CIE-LAB | lab(36.63, 28.51, -61.02) |
| CIE-LCH | lch(36.63, 67.35, 295.04°) |
| OKLab | oklab(46.46% -0.0065 -0.1761) |
| OKLCH | oklch(46.46% 0.176 267.9) |
| XYZ | xyz(12.6632, 9.3411, 47.5805) |
| Luminance | 0.0934 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.49
Sapphire
#0F52BA
ΔE00 3.87
Cobalt
#0047AB
ΔE00 4.20
Blue (survey)
#0343DF
ΔE00 5.17
Ocean Blue
#4F42B5
ΔE00 5.93
Sapphire (survey)
#2138AB
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CBA #BA9E30
analogous
#3091BA #304CBA #5930BA
triadic
#304CBA #BA304C #4CBA30
tetradic
#304CBA #BA3091 #BA9E30 #30BA59
square
#304CBA #BA3091 #BA9E30 #30BA59
split-complementary
#304CBA #BA5930 #91BA30
monochromatic
#172459 #233889 #304CBA #546ED3 #8597DF
Accessibility & contrast
On white
7.32
#304CBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#304CBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CBA
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CBA | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #304cba; /* rgb */ color: rgb(48, 76, 186); /* oklch */ color: oklch(46.5% 0.176 267.9);
Tailwind
colors: {
custom: {
50: '#7c7dd0',
500: '#304cba',
950: '#000000',
},
}SCSS
$custom: #304cba; $custom-light: #7c7dd0; $custom-dark: #000000;
JSON
{
"hex": "#304cba",
"rgb": {
"r": 48,
"g": 76,
"b": 186
},
"hsl": {
"h": 227.826,
"s": 58.974,
"l": 45.882
},
"oklch": {
"l": 0.46457,
"c": 0.17627,
"h": 267.9
},
"luminance": 0.09342
}Semantic roles & 50–950 ramp
primary
#304CBA
secondary
#C9B97D
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82