#304CB0#304CB0
#304CB0 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.163 H 267.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB0 |
|---|---|
| RGB | rgb(48, 76, 176) |
| HSL | hsl(227, 57%, 44%) |
| HSV | hsv(227, 73%, 69%) |
| CMYK | cmyk(72.7%, 56.8%, 0%, 31%) |
| CIE-LAB | lab(35.85, 24.79, -56.39) |
| CIE-LCH | lch(35.85, 61.60, 293.73°) |
| OKLab | oklab(45.63% -0.0068 -0.1625) |
| OKLCH | oklch(45.63% 0.163 267.6) |
| XYZ | xyz(11.6371, 8.9306, 42.1764) |
| Luminance | 0.0893 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.40
Sapphire
#0F52BA
ΔE00 3.68
Blue Blue
#2242C7
ΔE00 4.45
Cobalt (survey)
#1E488F
ΔE00 5.52
Sapphire (survey)
#2138AB
ΔE00 6.07
Ocean Blue
#4F42B5
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB0 #B09430
analogous
#308CB0 #304CB0 #5430B0
triadic
#304CB0 #B0304C #4CB030
tetradic
#304CB0 #B0308C #B09430 #30B054
square
#304CB0 #B0308C #B09430 #30B054
split-complementary
#304CB0 #B05430 #8CB030
monochromatic
#162250 #233780 #304CB0 #4E6ACF #7E93DC
Accessibility & contrast
On white
7.54
#304CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#304CB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB0
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB0 | 1.00 | 7.54 | 2.79 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304cb0; /* rgb */ color: rgb(48, 76, 176); /* oklch */ color: oklch(45.6% 0.163 267.6);
Tailwind
colors: {
custom: {
50: '#7a7dc8',
500: '#304cb0',
950: '#000000',
},
}SCSS
$custom: #304cb0; $custom-light: #7a7dc8; $custom-dark: #000000;
JSON
{
"hex": "#304cb0",
"rgb": {
"r": 48,
"g": 76,
"b": 176
},
"hsl": {
"h": 226.875,
"s": 57.143,
"l": 43.922
},
"oklch": {
"l": 0.45626,
"c": 0.16269,
"h": 267.6
},
"luminance": 0.08932
}Semantic roles & 50–950 ramp
primary
#304CB0
secondary
#C5B477
accent
#BF47E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82