#304AA9#304AA9
#304AA9 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.156 H 267.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).
Color values
| HEX | #304AA9 |
|---|---|
| RGB | rgb(48, 74, 169) |
| HSL | hsl(227, 56%, 43%) |
| HSV | hsv(227, 72%, 66%) |
| CMYK | cmyk(71.6%, 56.2%, 0%, 33.7%) |
| CIE-LAB | lab(34.78, 23.49, -53.97) |
| CIE-LCH | lch(34.78, 58.86, 293.52°) |
| OKLab | oklab(44.66% -0.0056 -0.1554) |
| OKLCH | oklch(44.66% 0.156 267.9) |
| XYZ | xyz(10.8267, 8.3894, 38.5772) |
| Luminance | 0.0839 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.13
Sapphire
#0F52BA
ΔE00 4.37
Cobalt (survey)
#1E488F
ΔE00 4.77
Blue Blue
#2242C7
ΔE00 4.87
Sapphire (survey)
#2138AB
ΔE00 5.56
Blueberry
#464196
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AA9 #A98F30
analogous
#3087A9 #304AA9 #5230A9
triadic
#304AA9 #A9304A #4AA930
tetradic
#304AA9 #A93087 #A98F30 #30A952
square
#304AA9 #A93087 #A98F30 #30A952
split-complementary
#304AA9 #A95230 #87A930
monochromatic
#15204A #223579 #304AA9 #4A66CC #7A8FD9
Accessibility & contrast
On white
7.84
#304AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#304AA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AA9
7.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AA9 | 1.00 | 7.84 | 2.68 | 7.84 |
| #FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058AC
Deuteranopia (green-blind)
#004CA7
Tritanopia (blue-blind)
#006172
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #304aa9; /* rgb */ color: rgb(48, 74, 169); /* oklch */ color: oklch(44.7% 0.156 267.9);
Tailwind
colors: {
custom: {
50: '#787cc3',
500: '#304aa9',
950: '#000000',
},
}SCSS
$custom: #304aa9; $custom-light: #787cc3; $custom-dark: #000000;
JSON
{
"hex": "#304aa9",
"rgb": {
"r": 48,
"g": 74,
"b": 169
},
"hsl": {
"h": 227.107,
"s": 55.76,
"l": 42.549
},
"oklch": {
"l": 0.44655,
"c": 0.15554,
"h": 267.9
},
"luminance": 0.08391
}Semantic roles & 50–950 ramp
primary
#304AA9
secondary
#C2B173
accent
#BF49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82