#304CAF#304CAF
#304CAF is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.161 H 267.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #304CAF |
|---|---|
| RGB | rgb(48, 76, 175) |
| HSL | hsl(227, 57%, 44%) |
| HSV | hsv(227, 73%, 69%) |
| CMYK | cmyk(72.6%, 56.6%, 0%, 31.4%) |
| CIE-LAB | lab(35.77, 24.41, -55.93) |
| CIE-LCH | lch(35.77, 61.02, 293.58°) |
| OKLab | oklab(45.55% -0.0069 -0.1612) |
| OKLCH | oklch(45.55% 0.161 267.6) |
| XYZ | xyz(11.5385, 8.8912, 41.6572) |
| Luminance | 0.0889 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.34
Sapphire
#0F52BA
ΔE00 3.69
Blue Blue
#2242C7
ΔE00 4.57
Cobalt (survey)
#1E488F
ΔE00 5.39
Sapphire (survey)
#2138AB
ΔE00 6.08
Ocean Blue
#4F42B5
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CAF #AF9330
analogous
#308BAF #304CAF #5330AF
triadic
#304CAF #AF304C #4CAF30
tetradic
#304CAF #AF308B #AF9330 #30AF53
square
#304CAF #AF308B #AF9330 #30AF53
split-complementary
#304CAF #AF5330 #8BAF30
monochromatic
#16224F #23377F #304CAF #4E6ACE #7E92DC
Accessibility & contrast
On white
7.56
#304CAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#304CAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CAF
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CAF | 1.00 | 7.56 | 2.78 | 7.56 |
| #FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #304caf; /* rgb */ color: rgb(48, 76, 175); /* oklch */ color: oklch(45.5% 0.161 267.6);
Tailwind
colors: {
custom: {
50: '#7a7dc8',
500: '#304caf',
950: '#000000',
},
}SCSS
$custom: #304caf; $custom-light: #7a7dc8; $custom-dark: #000000;
JSON
{
"hex": "#304caf",
"rgb": {
"r": 48,
"g": 76,
"b": 175
},
"hsl": {
"h": 226.772,
"s": 56.951,
"l": 43.725
},
"oklch": {
"l": 0.45545,
"c": 0.16132,
"h": 267.6
},
"luminance": 0.08892
}Semantic roles & 50–950 ramp
primary
#304CAF
secondary
#C4B376
accent
#BF48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82