#304BB2#304BB2
#304BB2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.167 H 267.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).
Color values
| HEX | #304BB2 |
|---|---|
| RGB | rgb(48, 75, 178) |
| HSL | hsl(228, 58%, 44%) |
| HSV | hsv(228, 73%, 70%) |
| CMYK | cmyk(73%, 57.9%, 0%, 30.2%) |
| CIE-LAB | lab(35.74, 26.19, -57.76) |
| CIE-LCH | lch(35.74, 63.42, 294.39°) |
| OKLab | oklab(45.59% -0.006 -0.1666) |
| OKLCH | oklch(45.59% 0.167 267.9) |
| XYZ | xyz(11.7681, 8.8737, 43.2034) |
| Luminance | 0.0887 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.53
Sapphire
#0F52BA
ΔE00 3.95
Blue Blue
#2242C7
ΔE00 3.99
Sapphire (survey)
#2138AB
ΔE00 5.73
Cobalt (survey)
#1E488F
ΔE00 5.85
Blue (survey)
#0343DF
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BB2 #B29730
analogous
#308CB2 #304BB2 #5630B2
triadic
#304BB2 #B2304B #4BB230
tetradic
#304BB2 #B2308C #B29730 #30B256
square
#304BB2 #B2308C #B29730 #30B256
split-complementary
#304BB2 #B25630 #8CB230
monochromatic
#162252 #233782 #304BB2 #506AD0 #8093DD
Accessibility & contrast
On white
7.57
#304BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#304BB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BB2
7.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BB2 | 1.00 | 7.57 | 2.77 | 7.57 |
| #FFFFFF | 7.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304bb2; /* rgb */ color: rgb(48, 75, 178); /* oklch */ color: oklch(45.6% 0.167 267.9);
Tailwind
colors: {
custom: {
50: '#7a7cca',
500: '#304bb2',
950: '#000000',
},
}SCSS
$custom: #304bb2; $custom-light: #7a7cca; $custom-dark: #000000;
JSON
{
"hex": "#304bb2",
"rgb": {
"r": 48,
"g": 75,
"b": 178
},
"hsl": {
"h": 227.538,
"s": 57.522,
"l": 44.314
},
"oklch": {
"l": 0.45592,
"c": 0.16668,
"h": 267.9
},
"luminance": 0.08875
}Semantic roles & 50–950 ramp
primary
#304BB2
secondary
#C6B678
accent
#C147E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82