#305AB5#305AB5
#305AB5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.152 H 263.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #305AB5 |
|---|---|
| RGB | rgb(48, 90, 181) |
| HSL | hsl(221, 58%, 45%) |
| HSV | hsv(221, 73%, 71%) |
| CMYK | cmyk(73.5%, 50.3%, 0%, 29%) |
| CIE-LAB | lab(40.04, 17.46, -52.56) |
| CIE-LCH | lch(40.04, 55.38, 288.37°) |
| OKLab | oklab(48.91% -0.0178 -0.151) |
| OKLCH | oklch(48.91% 0.152 263.3) |
| XYZ | xyz(13.2126, 11.2755, 45.1872) |
| Luminance | 0.1128 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.95
Denim
#1560BD
ΔE00 3.53
Denim Blue
#3B5B92
ΔE00 4.48
Dusky Blue
#475F94
ΔE00 5.37
Dusk Blue
#26538D
ΔE00 5.75
French Blue
#436BAD
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#305AB5 #B58B30
analogous
#309CB5 #305AB5 #4930B5
triadic
#305AB5 #B5305A #5AB530
tetradic
#305AB5 #B5309C #B58B30 #30B549
square
#305AB5 #B5309C #B58B30 #30B549
split-complementary
#305AB5 #B54930 #9CB530
monochromatic
#162A54 #234285 #305AB5 #517AD1 #829FDE
Accessibility & contrast
On white
6.45
#305AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#305AB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #305AB5
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##305AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##305AB5 | 1.00 | 6.45 | 3.26 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #305ab5; /* rgb */ color: rgb(48, 90, 181); /* oklch */ color: oklch(48.9% 0.152 263.3);
Tailwind
colors: {
custom: {
50: '#7a88cc',
500: '#305ab5',
950: '#000000',
},
}SCSS
$custom: #305ab5; $custom-light: #7a88cc; $custom-dark: #000000;
JSON
{
"hex": "#305ab5",
"rgb": {
"r": 48,
"g": 90,
"b": 181
},
"hsl": {
"h": 221.053,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.48912,
"c": 0.15209,
"h": 263.3
},
"luminance": 0.11277
}Semantic roles & 50–950 ramp
primary
#305AB5
secondary
#C7AF7A
accent
#B046E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82