#304AB1#304AB1
#304AB1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.167 H 268.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #304AB1 |
|---|---|
| RGB | rgb(48, 74, 177) |
| HSL | hsl(228, 57%, 44%) |
| HSV | hsv(228, 73%, 69%) |
| CMYK | cmyk(72.9%, 58.2%, 0%, 30.6%) |
| CIE-LAB | lab(35.40, 26.48, -57.72) |
| CIE-LCH | lch(35.40, 63.50, 294.64°) |
| OKLab | oklab(45.31% -0.0053 -0.1665) |
| OKLCH | oklch(45.31% 0.167 268.2) |
| XYZ | xyz(11.6008, 8.6991, 42.6542) |
| Luminance | 0.0870 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.50
Blue Blue
#2242C7
ΔE00 3.87
Sapphire
#0F52BA
ΔE00 4.23
Sapphire (survey)
#2138AB
ΔE00 5.41
Cobalt (survey)
#1E488F
ΔE00 5.80
Ocean Blue
#4F42B5
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AB1 #B19730
analogous
#308BB1 #304AB1 #5730B1
triadic
#304AB1 #B1304A #4AB130
tetradic
#304AB1 #B1308B #B19730 #30B157
square
#304AB1 #B1308B #B19730 #30B157
split-complementary
#304AB1 #B15730 #8BB130
monochromatic
#162251 #233681 #304AB1 #4F69CF #7F92DC
Accessibility & contrast
On white
7.66
#304AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#304AB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AB1
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AB1 | 1.00 | 7.66 | 2.74 | 7.66 |
| #FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #304ab1; /* rgb */ color: rgb(48, 74, 177); /* oklch */ color: oklch(45.3% 0.167 268.2);
Tailwind
colors: {
custom: {
50: '#7a7cc9',
500: '#304ab1',
950: '#000000',
},
}SCSS
$custom: #304ab1; $custom-light: #7a7cc9; $custom-dark: #000000;
JSON
{
"hex": "#304ab1",
"rgb": {
"r": 48,
"g": 74,
"b": 177
},
"hsl": {
"h": 227.907,
"s": 57.333,
"l": 44.118
},
"oklch": {
"l": 0.45312,
"c": 0.16656,
"h": 268.2
},
"luminance": 0.087
}Semantic roles & 50–950 ramp
primary
#304AB1
secondary
#C5B678
accent
#C247E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82