#304AAB#304AAB
#304AAB is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.8% C 0.158 H 268.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).
Color values
| HEX | #304AAB |
|---|---|
| RGB | rgb(48, 74, 171) |
| HSL | hsl(227, 56%, 43%) |
| HSV | hsv(227, 72%, 67%) |
| CMYK | cmyk(71.9%, 56.7%, 0%, 32.9%) |
| CIE-LAB | lab(34.93, 24.24, -54.91) |
| CIE-LCH | lch(34.93, 60.02, 293.82°) |
| OKLab | oklab(44.82% -0.0055 -0.1582) |
| OKLCH | oklch(44.82% 0.158 268) |
| XYZ | xyz(11.0158, 8.4651, 39.5736) |
| Luminance | 0.0847 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.18
Sapphire
#0F52BA
ΔE00 4.31
Blue Blue
#2242C7
ΔE00 4.61
Cobalt (survey)
#1E488F
ΔE00 5.03
Sapphire (survey)
#2138AB
ΔE00 5.49
Blueberry
#464196
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AAB #AB9130
analogous
#3087AB #304AAB #5330AB
triadic
#304AAB #AB304A #4AAB30
tetradic
#304AAB #AB3087 #AB9130 #30AB53
square
#304AAB #AB3087 #AB9130 #30AB53
split-complementary
#304AAB #AB5330 #87AB30
monochromatic
#15214B #23357B #304AAB #4C67CD #7B8FDA
Accessibility & contrast
On white
7.80
#304AAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#304AAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AAB
7.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AAB | 1.00 | 7.80 | 2.69 | 7.80 |
| #FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #304aab; /* rgb */ color: rgb(48, 74, 171); /* oklch */ color: oklch(44.8% 0.158 268.0);
Tailwind
colors: {
custom: {
50: '#797cc5',
500: '#304aab',
950: '#000000',
},
}SCSS
$custom: #304aab; $custom-light: #797cc5; $custom-dark: #000000;
JSON
{
"hex": "#304aab",
"rgb": {
"r": 48,
"g": 74,
"b": 171
},
"hsl": {
"h": 227.317,
"s": 56.164,
"l": 42.941
},
"oklch": {
"l": 0.44818,
"c": 0.15831,
"h": 268
},
"luminance": 0.08466
}Semantic roles & 50–950 ramp
primary
#304AAB
secondary
#C3B274
accent
#C048DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82