#304099#304099
#304099 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.146 H 270.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #304099 |
|---|---|
| RGB | rgb(48, 64, 153) |
| HSL | hsl(231, 52%, 39%) |
| HSV | hsv(231, 69%, 60%) |
| CMYK | cmyk(68.6%, 58.2%, 0%, 40%) |
| CIE-LAB | lab(30.86, 24.19, -50.69) |
| CIE-LCH | lch(30.86, 56.16, 295.52°) |
| OKLab | oklab(41.33% 0.0023 -0.1459) |
| OKLCH | oklch(41.33% 0.146 270.9) |
| XYZ | xyz(8.8001, 6.5943, 30.9399) |
| Luminance | 0.0659 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.78
Sapphire (survey)
#2138AB
ΔE00 3.81
Cobalt
#0047AB
ΔE00 4.94
Cobalt (survey)
#1E488F
ΔE00 5.20
Darkslateblue
#483D8B
ΔE00 5.41
Blue Blue
#2242C7
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304099 #998930
analogous
#307599 #304099 #553099
triadic
#304099 #993040 #409930
tetradic
#304099 #993075 #998930 #309955
square
#304099 #993075 #998930 #309955
split-complementary
#304099 #995530 #759930
monochromatic
#13193C #212D6A #304099 #4256C4 #7180D2
Accessibility & contrast
On white
9.06
#304099 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#304099 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304099
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304099 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304099 | 1.00 | 9.06 | 2.32 | 9.06 |
| #FFFFFF | 9.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #304099; /* rgb */ color: rgb(48, 64, 153); /* oklch */ color: oklch(41.3% 0.146 270.9);
Tailwind
colors: {
custom: {
50: '#7674b8',
500: '#304099',
950: '#000000',
},
}SCSS
$custom: #304099; $custom-light: #7674b8; $custom-dark: #000000;
JSON
{
"hex": "#304099",
"rgb": {
"r": 48,
"g": 64,
"b": 153
},
"hsl": {
"h": 230.857,
"s": 52.239,
"l": 39.412
},
"oklch": {
"l": 0.41334,
"c": 0.14595,
"h": 270.9
},
"luminance": 0.06595
}Semantic roles & 50–950 ramp
primary
#304099
secondary
#BAAE6B
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80