#2F4EB7#2F4EB7
#2F4EB7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.170 H 267.0°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EB7 |
|---|---|
| RGB | rgb(47, 78, 183) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 74%, 72%) |
| CMYK | cmyk(74.3%, 57.4%, 0%, 28.2%) |
| CIE-LAB | lab(36.88, 25.96, -58.87) |
| CIE-LCH | lch(36.88, 64.34, 293.80°) |
| OKLab | oklab(46.55% -0.009 -0.1698) |
| OKLCH | oklch(46.55% 0.17 267) |
| XYZ | xyz(12.4409, 9.4707, 45.9629) |
| Luminance | 0.0947 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.14
Cobalt
#0047AB
ΔE00 3.90
Blue Blue
#2242C7
ΔE00 4.33
Blue (survey)
#0343DF
ΔE00 5.88
Cobalt (survey)
#1E488F
ΔE00 6.31
Ocean Blue
#4F42B5
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EB7 #B7982F
analogous
#2F92B7 #2F4EB7 #542FB7
triadic
#2F4EB7 #B72F4E #4EB72F
tetradic
#2F4EB7 #B72F92 #B7982F #2FB754
square
#2F4EB7 #B72F92 #B7982F #2FB754
split-complementary
#2F4EB7 #B7542F #92B72F
monochromatic
#162456 #223986 #2F4EB7 #516ED2 #8297DF
Accessibility & contrast
On white
7.26
#2F4EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#2F4EB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EB7
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EB7 | 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)
#005DBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2f4eb7; /* rgb */ color: rgb(47, 78, 183); /* oklch */ color: oklch(46.6% 0.170 267.0);
Tailwind
colors: {
custom: {
50: '#7b7fcd',
500: '#2f4eb7',
950: '#000000',
},
}SCSS
$custom: #2f4eb7; $custom-light: #7b7fcd; $custom-dark: #000000;
JSON
{
"hex": "#2f4eb7",
"rgb": {
"r": 47,
"g": 78,
"b": 183
},
"hsl": {
"h": 226.324,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.46552,
"c": 0.17004,
"h": 267
},
"luminance": 0.09472
}Semantic roles & 50–950 ramp
primary
#2F4EB7
secondary
#C8B67A
accent
#BF45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82