#2F4DBA#2F4DBA
#2F4DBA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.175 H 267.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4DBA |
|---|---|
| RGB | rgb(47, 77, 186) |
| HSL | hsl(227, 60%, 46%) |
| HSV | hsv(227, 75%, 73%) |
| CMYK | cmyk(74.7%, 58.6%, 0%, 27.1%) |
| CIE-LAB | lab(36.85, 27.73, -60.68) |
| CIE-LCH | lch(36.85, 66.71, 294.56°) |
| OKLab | oklab(46.61% -0.0081 -0.1751) |
| OKLCH | oklch(46.61% 0.175 267.3) |
| XYZ | xyz(12.6860, 9.4559, 47.6014) |
| Luminance | 0.0946 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.51
Blue Blue
#2242C7
ΔE00 3.80
Cobalt
#0047AB
ΔE00 4.12
Blue (survey)
#0343DF
ΔE00 5.35
Ocean Blue
#4F42B5
ΔE00 6.29
Warm Blue
#4B57DB
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4DBA #BA9C2F
analogous
#2F93BA #2F4DBA #562FBA
triadic
#2F4DBA #BA2F4D #4DBA2F
tetradic
#2F4DBA #BA2F93 #BA9C2F #2FBA56
square
#2F4DBA #BA2F93 #BA9C2F #2FBA56
split-complementary
#2F4DBA #BA562F #93BA2F
monochromatic
#162558 #233989 #2F4DBA #536FD3 #8497E0
Accessibility & contrast
On white
7.26
#2F4DBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#2F4DBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4DBA
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4DBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4DBA | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f4dba; /* rgb */ color: rgb(47, 77, 186); /* oklch */ color: oklch(46.6% 0.175 267.3);
Tailwind
colors: {
custom: {
50: '#7c7ed0',
500: '#2f4dba',
950: '#000000',
},
}SCSS
$custom: #2f4dba; $custom-light: #7c7ed0; $custom-dark: #000000;
JSON
{
"hex": "#2f4dba",
"rgb": {
"r": 47,
"g": 77,
"b": 186
},
"hsl": {
"h": 227.05,
"s": 59.657,
"l": 45.686
},
"oklch": {
"l": 0.46605,
"c": 0.17532,
"h": 267.3
},
"luminance": 0.09457
}Semantic roles & 50–950 ramp
primary
#2F4DBA
secondary
#C9B87C
accent
#C145E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82