#2F4FA1#2F4FA1
#2F4FA1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.138 H 265.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FA1 |
|---|---|
| RGB | rgb(47, 79, 161) |
| HSL | hsl(223, 55%, 41%) |
| HSV | hsv(223, 71%, 63%) |
| CMYK | cmyk(70.8%, 50.9%, 0%, 36.9%) |
| CIE-LAB | lab(35.53, 17.01, -47.96) |
| CIE-LCH | lch(35.53, 50.89, 289.53°) |
| OKLab | oklab(45.03% -0.0115 -0.1377) |
| OKLCH | oklch(45.03% 0.138 265.2) |
| XYZ | xyz(10.3990, 8.7685, 34.8557) |
| Luminance | 0.0877 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.49
Cobalt (survey)
#1E488F
ΔE00 3.63
Sapphire
#0F52BA
ΔE00 3.72
Dusk Blue
#26538D
ΔE00 4.25
Denim Blue
#3B5B92
ΔE00 4.67
Light Navy Blue
#2E5A88
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FA1 #A1812F
analogous
#2F88A1 #2F4FA1 #482FA1
triadic
#2F4FA1 #A12F4F #4FA12F
tetradic
#2F4FA1 #A12F88 #A1812F #2FA148
square
#2F4FA1 #A12F88 #A1812F #2FA148
split-complementary
#2F4FA1 #A1482F #88A12F
monochromatic
#132142 #213872 #2F4FA1 #456AC9 #7490D6
Accessibility & contrast
On white
7.63
#2F4FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#2F4FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FA1
7.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FA1 | 1.00 | 7.63 | 2.75 | 7.63 |
| #FFFFFF | 7.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F59A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4fa1; /* rgb */ color: rgb(47, 79, 161); /* oklch */ color: oklch(45.0% 0.138 265.2);
Tailwind
colors: {
custom: {
50: '#767fbd',
500: '#2f4fa1',
950: '#000000',
},
}SCSS
$custom: #2f4fa1; $custom-light: #767fbd; $custom-dark: #000000;
JSON
{
"hex": "#2f4fa1",
"rgb": {
"r": 47,
"g": 79,
"b": 161
},
"hsl": {
"h": 223.158,
"s": 54.808,
"l": 40.784
},
"oklch": {
"l": 0.45028,
"c": 0.1382,
"h": 265.2
},
"luminance": 0.0877
}Semantic roles & 50–950 ramp
primary
#2F4FA1
secondary
#BEA86E
accent
#B44ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81