#304CB1#304CB1
#304CB1 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.164 H 267.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #304CB1 |
|---|---|
| RGB | rgb(48, 76, 177) |
| HSL | hsl(227, 57%, 44%) |
| HSV | hsv(227, 73%, 69%) |
| CMYK | cmyk(72.9%, 57.1%, 0%, 30.6%) |
| CIE-LAB | lab(35.93, 25.16, -56.86) |
| CIE-LCH | lch(35.93, 62.18, 293.87°) |
| OKLab | oklab(45.71% -0.0068 -0.1639) |
| OKLCH | oklch(45.71% 0.164 267.6) |
| XYZ | xyz(11.7364, 8.9704, 42.6994) |
| Luminance | 0.0897 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.46
Sapphire
#0F52BA
ΔE00 3.68
Blue Blue
#2242C7
ΔE00 4.34
Cobalt (survey)
#1E488F
ΔE00 5.65
Sapphire (survey)
#2138AB
ΔE00 6.06
Blue (survey)
#0343DF
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CB1 #B19530
analogous
#308DB1 #304CB1 #5530B1
triadic
#304CB1 #B1304C #4CB130
tetradic
#304CB1 #B1308D #B19530 #30B155
square
#304CB1 #B1308D #B19530 #30B155
split-complementary
#304CB1 #B15530 #8DB130
monochromatic
#162351 #233781 #304CB1 #4F6BCF #7F93DC
Accessibility & contrast
On white
7.52
#304CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#304CB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CB1
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CB1 | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304cb1; /* rgb */ color: rgb(48, 76, 177); /* oklch */ color: oklch(45.7% 0.164 267.6);
Tailwind
colors: {
custom: {
50: '#7a7dc9',
500: '#304cb1',
950: '#000000',
},
}SCSS
$custom: #304cb1; $custom-light: #7a7dc9; $custom-dark: #000000;
JSON
{
"hex": "#304cb1",
"rgb": {
"r": 48,
"g": 76,
"b": 177
},
"hsl": {
"h": 226.977,
"s": 57.333,
"l": 44.118
},
"oklch": {
"l": 0.45708,
"c": 0.16406,
"h": 267.6
},
"luminance": 0.08972
}Semantic roles & 50–950 ramp
primary
#304CB1
secondary
#C5B478
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82