#304CA2#304CA2
#304CA2 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.143 H 266.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #304CA2 |
|---|---|
| RGB | rgb(48, 76, 162) |
| HSL | hsl(225, 54%, 41%) |
| HSV | hsv(225, 70%, 64%) |
| CMYK | cmyk(70.4%, 53.1%, 0%, 36.5%) |
| CIE-LAB | lab(34.81, 19.54, -49.73) |
| CIE-LCH | lch(34.81, 53.43, 291.45°) |
| OKLab | oklab(44.52% -0.0078 -0.1429) |
| OKLCH | oklch(44.52% 0.143 266.9) |
| XYZ | xyz(10.3227, 8.4049, 35.2537) |
| Luminance | 0.0841 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.19
Cobalt (survey)
#1E488F
ΔE00 3.77
Sapphire
#0F52BA
ΔE00 4.26
Dusk Blue
#26538D
ΔE00 5.23
Denim Blue
#3B5B92
ΔE00 5.71
Blue Blue
#2242C7
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304CA2 #A28630
analogous
#3085A2 #304CA2 #4D30A2
triadic
#304CA2 #A2304C #4CA230
tetradic
#304CA2 #A23085 #A28630 #30A24D
square
#304CA2 #A23085 #A28630 #30A24D
split-complementary
#304CA2 #A24D30 #85A230
monochromatic
#142044 #223673 #304CA2 #4767C8 #768ED6
Accessibility & contrast
On white
7.83
#304CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#304CA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304CA2
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304CA2 | 1.00 | 7.83 | 2.68 | 7.83 |
| #FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1357A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #304ca2; /* rgb */ color: rgb(48, 76, 162); /* oklch */ color: oklch(44.5% 0.143 266.9);
Tailwind
colors: {
custom: {
50: '#777dbe',
500: '#304ca2',
950: '#000000',
},
}SCSS
$custom: #304ca2; $custom-light: #777dbe; $custom-dark: #000000;
JSON
{
"hex": "#304ca2",
"rgb": {
"r": 48,
"g": 76,
"b": 162
},
"hsl": {
"h": 225.263,
"s": 54.286,
"l": 41.176
},
"oklch": {
"l": 0.44515,
"c": 0.14315,
"h": 266.9
},
"luminance": 0.08406
}Semantic roles & 50–950 ramp
primary
#304CA2
secondary
#BEAB6F
accent
#B94ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81