#2F4AB7#2F4AB7
#2F4AB7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.8% C 0.175 H 268.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AB7 |
|---|---|
| RGB | rgb(47, 74, 183) |
| HSL | hsl(228, 59%, 45%) |
| HSV | hsv(228, 74%, 72%) |
| CMYK | cmyk(74.3%, 59.6%, 0%, 28.2%) |
| CIE-LAB | lab(35.83, 28.58, -60.57) |
| CIE-LCH | lch(35.83, 66.97, 295.26°) |
| OKLab | oklab(45.77% -0.006 -0.1749) |
| OKLCH | oklch(45.77% 0.175 268) |
| XYZ | xyz(12.1653, 8.9195, 45.8711) |
| Luminance | 0.0892 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.23
Cobalt
#0047AB
ΔE00 3.87
Sapphire
#0F52BA
ΔE00 4.22
Blue (survey)
#0343DF
ΔE00 5.28
Sapphire (survey)
#2138AB
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AB7 #B79C2F
analogous
#2F8EB7 #2F4AB7 #582FB7
triadic
#2F4AB7 #B72F4A #4AB72F
tetradic
#2F4AB7 #B72F8E #B79C2F #2FB758
square
#2F4AB7 #B72F8E #B79C2F #2FB758
split-complementary
#2F4AB7 #B7582F #8EB72F
monochromatic
#162356 #223686 #2F4AB7 #516BD2 #8294DF
Accessibility & contrast
On white
7.54
#2F4AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#2F4AB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AB7
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AB7 | 1.00 | 7.54 | 2.78 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ab7; /* rgb */ color: rgb(47, 74, 183); /* oklch */ color: oklch(45.8% 0.175 268.0);
Tailwind
colors: {
custom: {
50: '#7b7ccd',
500: '#2f4ab7',
950: '#000000',
},
}SCSS
$custom: #2f4ab7; $custom-light: #7b7ccd; $custom-dark: #000000;
JSON
{
"hex": "#2f4ab7",
"rgb": {
"r": 47,
"g": 74,
"b": 183
},
"hsl": {
"h": 228.088,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.4577,
"c": 0.17497,
"h": 268
},
"luminance": 0.08921
}Semantic roles & 50–950 ramp
primary
#2F4AB7
secondary
#C8B87A
accent
#C345E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82