#2F4EB8#2F4EB8
#2F4EB8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.171 H 267.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EB8 |
|---|---|
| RGB | rgb(47, 78, 184) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 72%) |
| CMYK | cmyk(74.5%, 57.6%, 0%, 27.8%) |
| CIE-LAB | lab(36.95, 26.33, -59.33) |
| CIE-LCH | lch(36.95, 64.91, 293.93°) |
| OKLab | oklab(46.63% -0.0089 -0.1712) |
| OKLCH | oklch(46.63% 0.171 267) |
| XYZ | xyz(12.5454, 9.5125, 46.5130) |
| Luminance | 0.0951 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.18
Cobalt
#0047AB
ΔE00 3.98
Blue Blue
#2242C7
ΔE00 4.25
Blue (survey)
#0343DF
ΔE00 5.76
Cobalt (survey)
#1E488F
ΔE00 6.44
Ocean Blue
#4F42B5
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EB8 #B8992F
analogous
#2F93B8 #2F4EB8 #542FB8
triadic
#2F4EB8 #B82F4E #4EB82F
tetradic
#2F4EB8 #B82F93 #B8992F #2FB854
square
#2F4EB8 #B82F93 #B8992F #2FB854
split-complementary
#2F4EB8 #B8542F #93B82F
monochromatic
#162557 #233987 #2F4EB8 #526FD3 #8297DF
Accessibility & contrast
On white
7.23
#2F4EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#2F4EB8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EB8
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EB8 | 1.00 | 7.23 | 2.90 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f4eb8; /* rgb */ color: rgb(47, 78, 184); /* oklch */ color: oklch(46.6% 0.171 267.0);
Tailwind
colors: {
custom: {
50: '#7b7fce',
500: '#2f4eb8',
950: '#000000',
},
}SCSS
$custom: #2f4eb8; $custom-light: #7b7fce; $custom-dark: #000000;
JSON
{
"hex": "#2f4eb8",
"rgb": {
"r": 47,
"g": 78,
"b": 184
},
"hsl": {
"h": 226.423,
"s": 59.307,
"l": 45.294
},
"oklch": {
"l": 0.46634,
"c": 0.17139,
"h": 267
},
"luminance": 0.09514
}Semantic roles & 50–950 ramp
primary
#2F4EB8
secondary
#C8B77B
accent
#BF45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82