#304FAE#304FAE
#304FAE is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.156 H 266.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).
Color values
| HEX | #304FAE |
|---|---|
| RGB | rgb(48, 79, 174) |
| HSL | hsl(225, 57%, 44%) |
| HSV | hsv(225, 72%, 68%) |
| CMYK | cmyk(72.4%, 54.6%, 0%, 31.8%) |
| CIE-LAB | lab(36.51, 22.06, -54.14) |
| CIE-LCH | lch(36.51, 58.46, 292.16°) |
| OKLab | oklab(46.07% -0.0094 -0.1559) |
| OKLCH | oklch(46.07% 0.156 266.6) |
| XYZ | xyz(11.6522, 9.2751, 41.2124) |
| Luminance | 0.0928 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.99
Cobalt
#0047AB
ΔE00 3.53
Cobalt (survey)
#1E488F
ΔE00 5.22
Blue Blue
#2242C7
ΔE00 5.45
Denim Blue
#3B5B92
ΔE00 5.74
Dusk Blue
#26538D
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304FAE #AE8F30
analogous
#308EAE #304FAE #5030AE
triadic
#304FAE #AE304F #4FAE30
tetradic
#304FAE #AE308E #AE8F30 #30AE50
square
#304FAE #AE308E #AE8F30 #30AE50
split-complementary
#304FAE #AE5030 #8EAE30
monochromatic
#16234E #23397E #304FAE #4D6DCE #7D94DB
Accessibility & contrast
On white
7.36
#304FAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#304FAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304FAE
7.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304FAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304FAE | 1.00 | 7.36 | 2.86 | 7.36 |
| #FFFFFF | 7.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #304fae; /* rgb */ color: rgb(48, 79, 174); /* oklch */ color: oklch(46.1% 0.156 266.6);
Tailwind
colors: {
custom: {
50: '#797fc7',
500: '#304fae',
950: '#000000',
},
}SCSS
$custom: #304fae; $custom-light: #797fc7; $custom-dark: #000000;
JSON
{
"hex": "#304fae",
"rgb": {
"r": 48,
"g": 79,
"b": 174
},
"hsl": {
"h": 225.238,
"s": 56.757,
"l": 43.529
},
"oklch": {
"l": 0.46074,
"c": 0.15615,
"h": 266.6
},
"luminance": 0.09276
}Semantic roles & 50–950 ramp
primary
#304FAE
secondary
#C4B176
accent
#BB48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82