#304CBD#304CBD
#304CBD is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.180 H 267.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #304CBD |
|---|---|
| RGB | rgb(48, 76, 189) |
| HSL | hsl(228, 59%, 46%) |
| HSV | hsv(228, 75%, 74%) |
| CMYK | cmyk(74.6%, 59.8%, 0%, 25.9%) |
| CIE-LAB | lab(36.87, 29.61, -62.39) |
| CIE-LCH | lch(36.87, 69.06, 295.39°) |
| OKLab | oklab(46.71% -0.0065 -0.1802) |
| OKLCH | oklch(46.71% 0.18 267.9) |
| XYZ | xyz(12.9855, 9.4700, 49.2778) |
| Luminance | 0.0947 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.28
Sapphire
#0F52BA
ΔE00 4.01
Cobalt
#0047AB
ΔE00 4.49
Blue (survey)
#0343DF
ΔE00 4.81
Ocean Blue
#4F42B5
ΔE00 5.85
Warm Blue
#4B57DB
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CBD #BDA130
analogous
#3093BD #304CBD #5B30BD
triadic
#304CBD #BD304C #4CBD30
tetradic
#304CBD #BD3093 #BDA130 #30BD5B
square
#304CBD #BD3093 #BDA130 #30BD5B
split-complementary
#304CBD #BD5B30 #93BD30
monochromatic
#17255B #24388C #304CBD #566FD4 #8799E0
Accessibility & contrast
On white
7.26
#304CBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#304CBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CBD
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CBD | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #304cbd; /* rgb */ color: rgb(48, 76, 189); /* oklch */ color: oklch(46.7% 0.180 267.9);
Tailwind
colors: {
custom: {
50: '#7d7dd2',
500: '#304cbd',
950: '#000000',
},
}SCSS
$custom: #304cbd; $custom-light: #7d7dd2; $custom-dark: #000000;
JSON
{
"hex": "#304cbd",
"rgb": {
"r": 48,
"g": 76,
"b": 189
},
"hsl": {
"h": 228.085,
"s": 59.494,
"l": 46.471
},
"oklch": {
"l": 0.46711,
"c": 0.18029,
"h": 267.9
},
"luminance": 0.09471
}Semantic roles & 50–950 ramp
primary
#304CBD
secondary
#CABB7F
accent
#C345E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83