#304AA6#304AA6
#304AA6 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.151 H 267.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).
Color values
| HEX | #304AA6 |
|---|---|
| RGB | rgb(48, 74, 166) |
| HSL | hsl(227, 55%, 42%) |
| HSV | hsv(227, 71%, 65%) |
| CMYK | cmyk(71.1%, 55.4%, 0%, 34.9%) |
| CIE-LAB | lab(34.56, 22.37, -52.54) |
| CIE-LCH | lch(34.56, 57.10, 293.06°) |
| OKLab | oklab(44.41% -0.0058 -0.1512) |
| OKLCH | oklch(44.41% 0.151 267.8) |
| XYZ | xyz(10.5483, 8.2780, 37.1109) |
| Luminance | 0.0828 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.09
Cobalt (survey)
#1E488F
ΔE00 4.40
Sapphire
#0F52BA
ΔE00 4.49
Blue Blue
#2242C7
ΔE00 5.27
Sapphire (survey)
#2138AB
ΔE00 5.68
Blueberry
#464196
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304AA6 #A68C30
analogous
#3085A6 #304AA6 #5130A6
triadic
#304AA6 #A6304A #4AA630
tetradic
#304AA6 #A63085 #A68C30 #30A651
square
#304AA6 #A63085 #A68C30 #30A651
split-complementary
#304AA6 #A65130 #85A630
monochromatic
#152047 #223577 #304AA6 #4965CA #788DD8
Accessibility & contrast
On white
7.91
#304AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#304AA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304AA6
7.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304AA6 | 1.00 | 7.91 | 2.66 | 7.91 |
| #FFFFFF | 7.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #304aa6; /* rgb */ color: rgb(48, 74, 166); /* oklch */ color: oklch(44.4% 0.151 267.8);
Tailwind
colors: {
custom: {
50: '#787cc1',
500: '#304aa6',
950: '#000000',
},
}SCSS
$custom: #304aa6; $custom-light: #787cc1; $custom-dark: #000000;
JSON
{
"hex": "#304aa6",
"rgb": {
"r": 48,
"g": 74,
"b": 166
},
"hsl": {
"h": 226.78,
"s": 55.14,
"l": 41.961
},
"oklch": {
"l": 0.44414,
"c": 0.15135,
"h": 267.8
},
"luminance": 0.08279
}Semantic roles & 50–950 ramp
primary
#304AA6
secondary
#C0AF71
accent
#BE49DE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81