#304DB2#304DB2
#304DB2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.164 H 267.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).
Color values
| HEX | #304DB2 |
|---|---|
| RGB | rgb(48, 77, 178) |
| HSL | hsl(227, 58%, 44%) |
| HSV | hsv(227, 73%, 70%) |
| CMYK | cmyk(73%, 56.7%, 0%, 30.2%) |
| CIE-LAB | lab(36.27, 24.87, -56.90) |
| CIE-LCH | lch(36.27, 62.10, 293.61°) |
| OKLab | oklab(45.99% -0.0075 -0.164) |
| OKLCH | oklch(45.99% 0.164 267.4) |
| XYZ | xyz(11.9059, 9.1492, 43.2494) |
| Luminance | 0.0915 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.42
Cobalt
#0047AB
ΔE00 3.56
Blue Blue
#2242C7
ΔE00 4.50
Cobalt (survey)
#1E488F
ΔE00 5.74
Blue (survey)
#0343DF
ΔE00 6.32
Sapphire (survey)
#2138AB
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304DB2 #B29530
analogous
#308EB2 #304DB2 #5430B2
triadic
#304DB2 #B2304D #4DB230
tetradic
#304DB2 #B2308E #B29530 #30B254
square
#304DB2 #B2308E #B29530 #30B254
split-complementary
#304DB2 #B25430 #8EB230
monochromatic
#162352 #233882 #304DB2 #506CD0 #8094DD
Accessibility & contrast
On white
7.42
#304DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#304DB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304DB2
7.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304DB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304DB2 | 1.00 | 7.42 | 2.83 | 7.42 |
| #FFFFFF | 7.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #304db2; /* rgb */ color: rgb(48, 77, 178); /* oklch */ color: oklch(46.0% 0.164 267.4);
Tailwind
colors: {
custom: {
50: '#7a7eca',
500: '#304db2',
950: '#000000',
},
}SCSS
$custom: #304db2; $custom-light: #7a7eca; $custom-dark: #000000;
JSON
{
"hex": "#304db2",
"rgb": {
"r": 48,
"g": 77,
"b": 178
},
"hsl": {
"h": 226.615,
"s": 57.522,
"l": 44.314
},
"oklch": {
"l": 0.45989,
"c": 0.16418,
"h": 267.4
},
"luminance": 0.0915
}Semantic roles & 50–950 ramp
primary
#304DB2
secondary
#C6B478
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82