#2F4EB9#2F4EB9
#2F4EB9 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.173 H 267.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EB9 |
|---|---|
| RGB | rgb(47, 78, 185) |
| HSL | hsl(227, 59%, 45%) |
| HSV | hsv(227, 75%, 73%) |
| CMYK | cmyk(74.6%, 57.8%, 0%, 27.5%) |
| CIE-LAB | lab(37.03, 26.71, -59.79) |
| CIE-LCH | lch(37.03, 65.48, 294.07°) |
| OKLab | oklab(46.72% -0.0089 -0.1725) |
| OKLCH | oklch(46.72% 0.173 267.1) |
| XYZ | xyz(12.6506, 9.5545, 47.0670) |
| Luminance | 0.0956 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.22
Cobalt
#0047AB
ΔE00 4.07
Blue Blue
#2242C7
ΔE00 4.17
Blue (survey)
#0343DF
ΔE00 5.64
Warm Blue
#4B57DB
ΔE00 6.52
Cobalt (survey)
#1E488F
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EB9 #B99A2F
analogous
#2F93B9 #2F4EB9 #552FB9
triadic
#2F4EB9 #B92F4E #4EB92F
tetradic
#2F4EB9 #B92F93 #B99A2F #2FB955
square
#2F4EB9 #B92F93 #B99A2F #2FB955
split-complementary
#2F4EB9 #B9552F #93B92F
monochromatic
#162557 #233988 #2F4EB9 #526FD3 #8398DF
Accessibility & contrast
On white
7.21
#2F4EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#2F4EB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EB9
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EB9 | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f4eb9; /* rgb */ color: rgb(47, 78, 185); /* oklch */ color: oklch(46.7% 0.173 267.1);
Tailwind
colors: {
custom: {
50: '#7b7fcf',
500: '#2f4eb9',
950: '#000000',
},
}SCSS
$custom: #2f4eb9; $custom-light: #7b7fcf; $custom-dark: #000000;
JSON
{
"hex": "#2f4eb9",
"rgb": {
"r": 47,
"g": 78,
"b": 185
},
"hsl": {
"h": 226.522,
"s": 59.483,
"l": 45.49
},
"oklch": {
"l": 0.46717,
"c": 0.17275,
"h": 267.1
},
"luminance": 0.09556
}Semantic roles & 50–950 ramp
primary
#2F4EB9
secondary
#C9B77B
accent
#BF45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82