#304299#304299
#304299 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.143 H 270.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).
Color values
| HEX | #304299 |
|---|---|
| RGB | rgb(48, 66, 153) |
| HSL | hsl(230, 52%, 39%) |
| HSV | hsv(230, 69%, 60%) |
| CMYK | cmyk(68.6%, 56.9%, 0%, 40%) |
| CIE-LAB | lab(31.40, 22.86, -49.81) |
| CIE-LCH | lch(31.40, 54.81, 294.65°) |
| OKLab | oklab(41.74% 0.0005 -0.1433) |
| OKLCH | oklch(41.74% 0.143 270.2) |
| XYZ | xyz(8.9150, 6.8239, 30.9781) |
| Luminance | 0.0683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.03
Sapphire (survey)
#2138AB
ΔE00 4.29
Cobalt
#0047AB
ΔE00 4.52
Cobalt (survey)
#1E488F
ΔE00 4.64
Darkslateblue
#483D8B
ΔE00 5.73
Blue Blue
#2242C7
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304299 #998730
analogous
#307799 #304299 #523099
triadic
#304299 #993042 #429930
tetradic
#304299 #993077 #998730 #309952
square
#304299 #993077 #998730 #309952
split-complementary
#304299 #995230 #779930
monochromatic
#131A3C #212E6A #304299 #4259C4 #7182D2
Accessibility & contrast
On white
8.88
#304299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#304299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304299
8.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304299 | 1.00 | 8.88 | 2.37 | 8.88 |
| #FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #304299; /* rgb */ color: rgb(48, 66, 153); /* oklch */ color: oklch(41.7% 0.143 270.2);
Tailwind
colors: {
custom: {
50: '#7576b8',
500: '#304299',
950: '#000000',
},
}SCSS
$custom: #304299; $custom-light: #7576b8; $custom-dark: #000000;
JSON
{
"hex": "#304299",
"rgb": {
"r": 48,
"g": 66,
"b": 153
},
"hsl": {
"h": 229.714,
"s": 52.239,
"l": 39.412
},
"oklch": {
"l": 0.41736,
"c": 0.14334,
"h": 270.2
},
"luminance": 0.06825
}Semantic roles & 50–950 ramp
primary
#304299
secondary
#BAAC6B
accent
#C34CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80