#305BB5#305BB5
#305BB5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.151 H 262.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #305BB5 |
|---|---|
| RGB | rgb(48, 91, 181) |
| HSL | hsl(221, 58%, 45%) |
| HSV | hsv(221, 73%, 71%) |
| CMYK | cmyk(73.5%, 49.7%, 0%, 29%) |
| CIE-LAB | lab(40.32, 16.80, -52.11) |
| CIE-LCH | lch(40.32, 54.75, 287.87°) |
| OKLab | oklab(49.13% -0.0187 -0.1497) |
| OKLCH | oklch(49.13% 0.151 262.9) |
| XYZ | xyz(13.2975, 11.4453, 45.2155) |
| Luminance | 0.1145 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.20
Denim
#1560BD
ΔE00 3.23
Denim Blue
#3B5B92
ΔE00 4.44
Dusky Blue
#475F94
ΔE00 5.30
French Blue
#436BAD
ΔE00 5.53
Denim (survey)
#3B638C
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#305BB5 #B58A30
analogous
#309DB5 #305BB5 #4830B5
triadic
#305BB5 #B5305B #5BB530
tetradic
#305BB5 #B5309D #B58A30 #30B548
square
#305BB5 #B5309D #B58A30 #30B548
split-complementary
#305BB5 #B54830 #9DB530
monochromatic
#162A54 #234385 #305BB5 #517BD1 #829FDE
Accessibility & contrast
On white
6.38
#305BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#305BB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #305BB5
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##305BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##305BB5 | 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)
#2765B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #305bb5; /* rgb */ color: rgb(48, 91, 181); /* oklch */ color: oklch(49.1% 0.151 262.9);
Tailwind
colors: {
custom: {
50: '#7a88cc',
500: '#305bb5',
950: '#000000',
},
}SCSS
$custom: #305bb5; $custom-light: #7a88cc; $custom-dark: #000000;
JSON
{
"hex": "#305bb5",
"rgb": {
"r": 48,
"g": 91,
"b": 181
},
"hsl": {
"h": 220.602,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.49125,
"c": 0.15085,
"h": 262.9
},
"luminance": 0.11447
}Semantic roles & 50–950 ramp
primary
#305BB5
secondary
#C7AE7A
accent
#AF46E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82