#305EA8#305EA8
#305EA8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.129 H 259.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #305EA8 |
|---|---|
| RGB | rgb(48, 94, 168) |
| HSL | hsl(217, 56%, 42%) |
| HSV | hsv(217, 71%, 66%) |
| CMYK | cmyk(71.4%, 44%, 0%, 34.1%) |
| CIE-LAB | lab(40.34, 9.95, -44.41) |
| CIE-LCH | lch(40.34, 45.51, 282.63°) |
| OKLab | oklab(48.88% -0.0235 -0.127) |
| OKLCH | oklch(48.88% 0.129 259.5) |
| XYZ | xyz(12.2870, 11.4596, 38.6026) |
| Luminance | 0.1146 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.76
Denim Blue
#3B5B92
ΔE00 3.22
Denim (survey)
#3B638C
ΔE00 4.12
Light Navy Blue
#2E5A88
ΔE00 4.28
Dusky Blue
#475F94
ΔE00 4.43
Sapphire
#0F52BA
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#305EA8 #A87A30
analogous
#309AA8 #305EA8 #3E30A8
triadic
#305EA8 #A8305E #5EA830
tetradic
#305EA8 #A8309A #A87A30 #30A83E
square
#305EA8 #A8309A #A87A30 #30A83E
split-complementary
#305EA8 #A83E30 #9AA830
monochromatic
#152949 #224378 #305EA8 #4A7CCB #7A9ED9
Accessibility & contrast
On white
6.38
#305EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#305EA8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #305EA8
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##305EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##305EA8 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#245AA6
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #305ea8; /* rgb */ color: rgb(48, 94, 168); /* oklch */ color: oklch(48.9% 0.129 259.5);
Tailwind
colors: {
custom: {
50: '#778bc2',
500: '#305ea8',
950: '#000000',
},
}SCSS
$custom: #305ea8; $custom-light: #778bc2; $custom-dark: #000000;
JSON
{
"hex": "#305ea8",
"rgb": {
"r": 48,
"g": 94,
"b": 168
},
"hsl": {
"h": 217,
"s": 55.556,
"l": 42.353
},
"oklch": {
"l": 0.48875,
"c": 0.12914,
"h": 259.5
},
"luminance": 0.11461
}Semantic roles & 50–950 ramp
primary
#305EA8
secondary
#C1A373
accent
#A549DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81