#305FB5#305FB5
#305FB5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.146 H 261.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #305FB5 |
|---|---|
| RGB | rgb(48, 95, 181) |
| HSL | hsl(219, 58%, 45%) |
| HSV | hsv(219, 73%, 71%) |
| CMYK | cmyk(73.5%, 47.5%, 0%, 29%) |
| CIE-LAB | lab(41.45, 14.20, -50.29) |
| CIE-LCH | lch(41.45, 52.26, 285.77°) |
| OKLab | oklab(49.99% -0.0221 -0.1443) |
| OKLCH | oklch(49.99% 0.146 261.3) |
| XYZ | xyz(13.6486, 12.1475, 45.3325) |
| Luminance | 0.1215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.17
French Blue
#436BAD
ΔE00 4.25
Sapphire
#0F52BA
ΔE00 4.37
Denim Blue
#3B5B92
ΔE00 4.58
Mid Blue
#276AB3
ΔE00 4.85
Denim (survey)
#3B638C
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#305FB5 #B58630
analogous
#30A2B5 #305FB5 #4330B5
triadic
#305FB5 #B5305F #5FB530
tetradic
#305FB5 #B530A2 #B58630 #30B543
square
#305FB5 #B530A2 #B58630 #30B543
split-complementary
#305FB5 #B54330 #A2B530
monochromatic
#162C54 #234685 #305FB5 #517ED1 #82A2DE
Accessibility & contrast
On white
6.12
#305FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#305FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #305FB5
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##305FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##305FB5 | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3168B8
Deuteranopia (green-blind)
#0D5CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #305fb5; /* rgb */ color: rgb(48, 95, 181); /* oklch */ color: oklch(50.0% 0.146 261.3);
Tailwind
colors: {
custom: {
50: '#7a8bcc',
500: '#305fb5',
950: '#000000',
},
}SCSS
$custom: #305fb5; $custom-light: #7a8bcc; $custom-dark: #000000;
JSON
{
"hex": "#305fb5",
"rgb": {
"r": 48,
"g": 95,
"b": 181
},
"hsl": {
"h": 218.797,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.4999,
"c": 0.14596,
"h": 261.3
},
"luminance": 0.12149
}Semantic roles & 50–950 ramp
primary
#305FB5
secondary
#C7AC7A
accent
#AB46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82