#304AB6#304AB6
#304AB6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.173 H 268.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).
Color values
| HEX | #304AB6 |
|---|---|
| RGB | rgb(48, 74, 182) |
| HSL | hsl(228, 58%, 45%) |
| HSV | hsv(228, 74%, 71%) |
| CMYK | cmyk(73.6%, 59.3%, 0%, 28.6%) |
| CIE-LAB | lab(35.80, 28.33, -60.03) |
| CIE-LCH | lch(35.80, 66.38, 295.26°) |
| OKLab | oklab(45.73% -0.0051 -0.1733) |
| OKLCH | oklch(45.73% 0.173 268.3) |
| XYZ | xyz(12.1083, 8.9021, 45.3270) |
| Luminance | 0.0890 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.32
Cobalt
#0047AB
ΔE00 3.88
Sapphire
#0F52BA
ΔE00 4.29
Blue (survey)
#0343DF
ΔE00 5.40
Sapphire (survey)
#2138AB
ΔE00 5.46
Ocean Blue
#4F42B5
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AB6 #B69C30
analogous
#308DB6 #304AB6 #5930B6
triadic
#304AB6 #B6304A #4AB630
tetradic
#304AB6 #B6308D #B69C30 #30B659
square
#304AB6 #B6308D #B69C30 #30B659
split-complementary
#304AB6 #B65930 #8DB630
monochromatic
#162355 #233686 #304AB6 #526BD1 #8294DE
Accessibility & contrast
On white
7.55
#304AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#304AB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AB6
7.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AB6 | 1.00 | 7.55 | 2.78 | 7.55 |
| #FFFFFF | 7.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304ab6; /* rgb */ color: rgb(48, 74, 182); /* oklch */ color: oklch(45.7% 0.173 268.3);
Tailwind
colors: {
custom: {
50: '#7b7ccd',
500: '#304ab6',
950: '#000000',
},
}SCSS
$custom: #304ab6; $custom-light: #7b7ccd; $custom-dark: #000000;
JSON
{
"hex": "#304ab6",
"rgb": {
"r": 48,
"g": 74,
"b": 182
},
"hsl": {
"h": 228.358,
"s": 58.261,
"l": 45.098
},
"oklch": {
"l": 0.45732,
"c": 0.17335,
"h": 268.3
},
"luminance": 0.08903
}Semantic roles & 50–950 ramp
primary
#304AB6
secondary
#C7B87B
accent
#C346E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82