#2F3FA7#2F3FA7
#2F3FA7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.167 H 270.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3FA7 |
|---|---|
| RGB | rgb(47, 63, 167) |
| HSL | hsl(232, 56%, 42%) |
| HSV | hsv(232, 72%, 65%) |
| CMYK | cmyk(71.9%, 62.3%, 0%, 34.5%) |
| CIE-LAB | lab(31.69, 29.87, -57.81) |
| CIE-LCH | lch(31.69, 65.07, 297.33°) |
| OKLab | oklab(42.29% 0.002 -0.1669) |
| OKLCH | oklch(42.29% 0.167 270.7) |
| XYZ | xyz(9.9225, 6.9484, 37.3700) |
| Luminance | 0.0695 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.26
Blue Blue
#2242C7
ΔE00 4.30
Blueberry
#464196
ΔE00 4.41
Cobalt
#0047AB
ΔE00 4.88
Ocean Blue
#4F42B5
ΔE00 5.08
Darkslateblue
#483D8B
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3FA7 #A7972F
analogous
#2F7BA7 #2F3FA7 #5B2FA7
triadic
#2F3FA7 #A72F3F #3FA72F
tetradic
#2F3FA7 #A72F7B #A7972F #2FA75B
square
#2F3FA7 #A72F7B #A7972F #2FA75B
split-complementary
#2F3FA7 #A75B2F #7BA72F
monochromatic
#141B47 #222D77 #2F3FA7 #4859CB #7885D9
Accessibility & contrast
On white
8.79
#2F3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#2F3FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3FA7
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3FA7 | 1.00 | 8.79 | 2.39 | 8.79 |
| #FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2f3fa7; /* rgb */ color: rgb(47, 63, 167); /* oklch */ color: oklch(42.3% 0.167 270.7);
Tailwind
colors: {
custom: {
50: '#7874c2',
500: '#2f3fa7',
950: '#000000',
},
}SCSS
$custom: #2f3fa7; $custom-light: #7874c2; $custom-dark: #000000;
JSON
{
"hex": "#2f3fa7",
"rgb": {
"r": 47,
"g": 63,
"b": 167
},
"hsl": {
"h": 232,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.42287,
"c": 0.16689,
"h": 270.7
},
"luminance": 0.06949
}Semantic roles & 50–950 ramp
primary
#2F3FA7
secondary
#C1B671
accent
#CB48DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81