#304C8A#304C8A
#304C8A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.8% C 0.108 H 264.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).
Color values
| HEX | #304C8A |
|---|---|
| RGB | rgb(48, 76, 138) |
| HSL | hsl(221, 48%, 36%) |
| HSV | hsv(221, 65%, 54%) |
| CMYK | cmyk(65.2%, 44.9%, 0%, 45.9%) |
| CIE-LAB | lab(33.20, 10.54, -37.75) |
| CIE-LCH | lch(33.20, 39.19, 285.60°) |
| OKLab | oklab(42.77% -0.0112 -0.1077) |
| OKLCH | oklch(42.77% 0.108 264.1) |
| XYZ | xyz(8.3892, 7.6315, 25.0707) |
| Luminance | 0.0763 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.36
Dusk Blue
#26538D
ΔE00 3.70
Darkish Blue
#014182
ΔE00 4.97
Denim Blue
#3B5B92
ΔE00 4.98
Twilight Blue
#0A437A
ΔE00 5.18
Cobalt
#0047AB
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#304C8A #8A6E30
analogous
#30798A #304C8A #41308A
triadic
#304C8A #8A304C #4C8A30
tetradic
#304C8A #8A3079 #8A6E30 #308A41
square
#304C8A #8A3079 #8A6E30 #308A41
split-complementary
#304C8A #8A4130 #798A30
monochromatic
#101A2F #20335D #304C8A #4065B7 #6988CB
Accessibility & contrast
On white
8.31
#304C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#304C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #304C8A
8.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##304C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##304C8A | 1.00 | 8.31 | 2.53 | 8.31 |
| #FFFFFF | 8.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F528C
Deuteranopia (green-blind)
#214A89
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #304c8a; /* rgb */ color: rgb(48, 76, 138); /* oklch */ color: oklch(42.8% 0.108 264.1);
Tailwind
colors: {
custom: {
50: '#727dac',
500: '#304c8a',
950: '#000000',
},
}SCSS
$custom: #304c8a; $custom-light: #727dac; $custom-dark: #000000;
JSON
{
"hex": "#304c8a",
"rgb": {
"r": 48,
"g": 76,
"b": 138
},
"hsl": {
"h": 221.333,
"s": 48.387,
"l": 36.471
},
"oklch": {
"l": 0.42772,
"c": 0.10829,
"h": 264.1
},
"luminance": 0.07632
}Semantic roles & 50–950 ramp
primary
#304C8A
secondary
#B29A64
accent
#AE50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F