#304BAE#304BAE
#304BAE is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.161 H 267.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).
Color values
| HEX | #304BAE |
|---|---|
| RGB | rgb(48, 75, 174) |
| HSL | hsl(227, 57%, 44%) |
| HSV | hsv(227, 72%, 68%) |
| CMYK | cmyk(72.4%, 56.9%, 0%, 31.8%) |
| CIE-LAB | lab(35.43, 24.70, -55.89) |
| CIE-LCH | lch(35.43, 61.10, 293.84°) |
| OKLab | oklab(45.26% -0.0061 -0.1611) |
| OKLCH | oklch(45.26% 0.161 267.8) |
| XYZ | xyz(11.3723, 8.7153, 41.1191) |
| Luminance | 0.0872 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.29
Sapphire
#0F52BA
ΔE00 3.97
Blue Blue
#2242C7
ΔE00 4.45
Cobalt (survey)
#1E488F
ΔE00 5.33
Sapphire (survey)
#2138AB
ΔE00 5.76
Blueberry
#464196
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304BAE #AE9330
analogous
#308AAE #304BAE #5430AE
triadic
#304BAE #AE304B #4BAE30
tetradic
#304BAE #AE308A #AE9330 #30AE54
square
#304BAE #AE308A #AE9330 #30AE54
split-complementary
#304BAE #AE5430 #8AAE30
monochromatic
#16224E #23367E #304BAE #4D69CE #7D91DB
Accessibility & contrast
On white
7.65
#304BAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#304BAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304BAE
7.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304BAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304BAE | 1.00 | 7.65 | 2.74 | 7.65 |
| #FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #304bae; /* rgb */ color: rgb(48, 75, 174); /* oklch */ color: oklch(45.3% 0.161 267.8);
Tailwind
colors: {
custom: {
50: '#797cc7',
500: '#304bae',
950: '#000000',
},
}SCSS
$custom: #304bae; $custom-light: #797cc7; $custom-dark: #000000;
JSON
{
"hex": "#304bae",
"rgb": {
"r": 48,
"g": 75,
"b": 174
},
"hsl": {
"h": 227.143,
"s": 56.757,
"l": 43.529
},
"oklch": {
"l": 0.45263,
"c": 0.1612,
"h": 267.8
},
"luminance": 0.08717
}Semantic roles & 50–950 ramp
primary
#304BAE
secondary
#C4B376
accent
#BF48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82