#304399#304399
#304399 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.142 H 269.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #304399 |
|---|---|
| RGB | rgb(48, 67, 153) |
| HSL | hsl(229, 52%, 39%) |
| HSV | hsv(229, 69%, 60%) |
| CMYK | cmyk(68.6%, 56.2%, 0%, 40%) |
| CIE-LAB | lab(31.67, 22.19, -49.37) |
| CIE-LCH | lch(31.67, 54.13, 294.20°) |
| OKLab | oklab(41.94% -0.0004 -0.142) |
| OKLCH | oklch(41.94% 0.142 269.8) |
| XYZ | xyz(8.9739, 6.9417, 30.9978) |
| Luminance | 0.0694 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.19
Cobalt
#0047AB
ΔE00 4.33
Cobalt (survey)
#1E488F
ΔE00 4.37
Sapphire (survey)
#2138AB
ΔE00 4.55
Darkslateblue
#483D8B
ΔE00 5.92
Blue Blue
#2242C7
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304399 #998630
analogous
#307899 #304399 #523099
triadic
#304399 #993043 #439930
tetradic
#304399 #993078 #998630 #309952
square
#304399 #993078 #998630 #309952
split-complementary
#304399 #995230 #789930
monochromatic
#131A3C #212F6A #304399 #425AC4 #7183D2
Accessibility & contrast
On white
8.79
#304399 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#304399 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304399
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304399 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304399 | 1.00 | 8.79 | 2.39 | 8.79 |
| #FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #304399; /* rgb */ color: rgb(48, 67, 153); /* oklch */ color: oklch(41.9% 0.142 269.8);
Tailwind
colors: {
custom: {
50: '#7576b8',
500: '#304399',
950: '#000000',
},
}SCSS
$custom: #304399; $custom-light: #7576b8; $custom-dark: #000000;
JSON
{
"hex": "#304399",
"rgb": {
"r": 48,
"g": 67,
"b": 153
},
"hsl": {
"h": 229.143,
"s": 52.239,
"l": 39.412
},
"oklch": {
"l": 0.41939,
"c": 0.14203,
"h": 269.8
},
"luminance": 0.06943
}Semantic roles & 50–950 ramp
primary
#304399
secondary
#BAAC6B
accent
#C24CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80