#304BC1#304BC1
#304BC1 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.187 H 268.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).
Color values
| HEX | #304BC1 |
|---|---|
| RGB | rgb(48, 75, 193) |
| HSL | hsl(229, 60%, 47%) |
| HSV | hsv(229, 75%, 76%) |
| CMYK | cmyk(75.1%, 61.1%, 0%, 24.3%) |
| CIE-LAB | lab(36.95, 31.73, -64.61) |
| CIE-LCH | lch(36.95, 71.99, 296.16°) |
| OKLab | oklab(46.87% -0.0058 -0.1867) |
| OKLCH | oklch(46.87% 0.187 268.2) |
| XYZ | xyz(13.3573, 9.5093, 51.5733) |
| Luminance | 0.0951 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.77
Blue (survey)
#0343DF
ΔE00 4.20
Sapphire
#0F52BA
ΔE00 4.50
Cobalt
#0047AB
ΔE00 4.93
Ocean Blue
#4F42B5
ΔE00 5.56
Warm Blue
#4B57DB
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BC1 #C1A630
analogous
#3093C1 #304BC1 #5E30C1
triadic
#304BC1 #C1304B #4BC130
tetradic
#304BC1 #C13093 #C1A630 #30C15E
square
#304BC1 #C13093 #C1A630 #30C15E
split-complementary
#304BC1 #C15E30 #93C130
monochromatic
#18255F #243890 #304BC1 #5970D6 #8A9AE2
Accessibility & contrast
On white
7.24
#304BC1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#304BC1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BC1
7.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BC1 | 1.00 | 7.24 | 2.90 | 7.24 |
| #FFFFFF | 7.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #304bc1; /* rgb */ color: rgb(48, 75, 193); /* oklch */ color: oklch(46.9% 0.187 268.2);
Tailwind
colors: {
custom: {
50: '#7e7dd5',
500: '#304bc1',
950: '#000000',
},
}SCSS
$custom: #304bc1; $custom-light: #7e7dd5; $custom-dark: #000000;
JSON
{
"hex": "#304bc1",
"rgb": {
"r": 48,
"g": 75,
"b": 193
},
"hsl": {
"h": 228.828,
"s": 60.166,
"l": 47.255
},
"oklch": {
"l": 0.46867,
"c": 0.18679,
"h": 268.2
},
"luminance": 0.09511
}Semantic roles & 50–950 ramp
primary
#304BC1
secondary
#CCBE81
accent
#C644E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83