#2F4EB1#2F4EB1
#2F4EB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.162 H 266.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EB1 |
|---|---|
| RGB | rgb(47, 78, 177) |
| HSL | hsl(226, 58%, 44%) |
| HSV | hsv(226, 73%, 69%) |
| CMYK | cmyk(73.4%, 55.9%, 0%, 30.6%) |
| CIE-LAB | lab(36.42, 23.71, -56.07) |
| CIE-LCH | lch(36.42, 60.88, 292.92°) |
| OKLab | oklab(46.06% -0.0093 -0.1616) |
| OKLCH | oklch(46.06% 0.162 266.7) |
| XYZ | xyz(11.8297, 9.2262, 42.7438) |
| Luminance | 0.0923 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.07
Cobalt
#0047AB
ΔE00 3.47
Blue Blue
#2242C7
ΔE00 4.90
Cobalt (survey)
#1E488F
ΔE00 5.53
Dusk Blue
#26538D
ΔE00 6.24
Denim Blue
#3B5B92
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EB1 #B1922F
analogous
#2F8FB1 #2F4EB1 #512FB1
triadic
#2F4EB1 #B12F4E #4EB12F
tetradic
#2F4EB1 #B12F8F #B1922F #2FB151
square
#2F4EB1 #B12F8F #B1922F #2FB151
split-complementary
#2F4EB1 #B1512F #8FB12F
monochromatic
#152350 #223981 #2F4EB1 #4D6CD0 #7E94DD
Accessibility & contrast
On white
7.38
#2F4EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#2F4EB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EB1
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EB1 | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2f4eb1; /* rgb */ color: rgb(47, 78, 177); /* oklch */ color: oklch(46.1% 0.162 266.7);
Tailwind
colors: {
custom: {
50: '#797fc9',
500: '#2f4eb1',
950: '#000000',
},
}SCSS
$custom: #2f4eb1; $custom-light: #797fc9; $custom-dark: #000000;
JSON
{
"hex": "#2f4eb1",
"rgb": {
"r": 47,
"g": 78,
"b": 177
},
"hsl": {
"h": 225.692,
"s": 58.036,
"l": 43.922
},
"oklch": {
"l": 0.46063,
"c": 0.16185,
"h": 266.7
},
"luminance": 0.09227
}Semantic roles & 50–950 ramp
primary
#2F4EB1
secondary
#C5B376
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82