#2F5AB5#2F5AB5
#2F5AB5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.152 H 263.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2F5AB5 |
|---|---|
| RGB | rgb(47, 90, 181) |
| HSL | hsl(221, 59%, 45%) |
| HSV | hsv(221, 74%, 71%) |
| CMYK | cmyk(74%, 50.3%, 0%, 29%) |
| CIE-LAB | lab(40.00, 17.32, -52.63) |
| CIE-LCH | lch(40.00, 55.40, 288.22°) |
| OKLab | oklab(48.87% -0.0186 -0.1512) |
| OKLCH | oklch(48.87% 0.152 263) |
| XYZ | xyz(13.1660, 11.2514, 45.1850) |
| Luminance | 0.1125 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.90
Denim
#1560BD
ΔE00 3.44
Denim Blue
#3B5B92
ΔE00 4.47
Dusky Blue
#475F94
ΔE00 5.41
Dusk Blue
#26538D
ΔE00 5.69
Light Navy Blue
#2E5A88
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F5AB5 #B58A2F
analogous
#2F9DB5 #2F5AB5 #472FB5
triadic
#2F5AB5 #B52F5A #5AB52F
tetradic
#2F5AB5 #B52F9D #B58A2F #2FB547
square
#2F5AB5 #B52F9D #B58A2F #2FB547
split-complementary
#2F5AB5 #B5472F #9DB52F
monochromatic
#162A54 #224284 #2F5AB5 #5079D1 #809EDE
Accessibility & contrast
On white
6.46
#2F5AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#2F5AB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F5AB5
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F5AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F5AB5 | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #2f5ab5; /* rgb */ color: rgb(47, 90, 181); /* oklch */ color: oklch(48.9% 0.152 263.0);
Tailwind
colors: {
custom: {
50: '#7a88cc',
500: '#2f5ab5',
950: '#000000',
},
}SCSS
$custom: #2f5ab5; $custom-light: #7a88cc; $custom-dark: #000000;
JSON
{
"hex": "#2f5ab5",
"rgb": {
"r": 47,
"g": 90,
"b": 181
},
"hsl": {
"h": 220.746,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.4887,
"c": 0.15239,
"h": 263
},
"luminance": 0.11253
}Semantic roles & 50–950 ramp
primary
#2F5AB5
secondary
#C7AE79
accent
#B046E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82