#2F3FA5#2F3FA5
#2F3FA5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.164 H 270.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3FA5 |
|---|---|
| RGB | rgb(47, 63, 165) |
| HSL | hsl(232, 56%, 42%) |
| HSV | hsv(232, 72%, 65%) |
| CMYK | cmyk(71.5%, 61.8%, 0%, 35.3%) |
| CIE-LAB | lab(31.52, 29.14, -56.88) |
| CIE-LCH | lch(31.52, 63.91, 297.13°) |
| OKLab | oklab(42.11% 0.0021 -0.1642) |
| OKLCH | oklch(42.11% 0.164 270.7) |
| XYZ | xyz(9.7390, 6.8750, 36.4038) |
| Luminance | 0.0688 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.37
Blueberry
#464196
ΔE00 4.27
Blue Blue
#2242C7
ΔE00 4.58
Cobalt
#0047AB
ΔE00 4.86
Ocean Blue
#4F42B5
ΔE00 5.25
Darkslateblue
#483D8B
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3FA5 #A5952F
analogous
#2F7AA5 #2F3FA5 #5A2FA5
triadic
#2F3FA5 #A52F3F #3FA52F
tetradic
#2F3FA5 #A52F7A #A5952F #2FA55A
square
#2F3FA5 #A52F7A #A5952F #2FA55A
split-complementary
#2F3FA5 #A55A2F #7AA52F
monochromatic
#141B46 #212D75 #2F3FA5 #4759CB #7684D8
Accessibility & contrast
On white
8.84
#2F3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#2F3FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3FA5
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3FA5 | 1.00 | 8.84 | 2.38 | 8.84 |
| #FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f3fa5; /* rgb */ color: rgb(47, 63, 165); /* oklch */ color: oklch(42.1% 0.164 270.7);
Tailwind
colors: {
custom: {
50: '#7874c1',
500: '#2f3fa5',
950: '#000000',
},
}SCSS
$custom: #2f3fa5; $custom-light: #7874c1; $custom-dark: #000000;
JSON
{
"hex": "#2f3fa5",
"rgb": {
"r": 47,
"g": 63,
"b": 165
},
"hsl": {
"h": 231.864,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.4211,
"c": 0.16417,
"h": 270.7
},
"luminance": 0.06876
}Semantic roles & 50–950 ramp
primary
#2F3FA5
secondary
#C0B570
accent
#CB49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81