#2F3FA6#2F3FA6
#2F3FA6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.166 H 270.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3FA6 |
|---|---|
| RGB | rgb(47, 63, 166) |
| HSL | hsl(232, 56%, 42%) |
| HSV | hsv(232, 72%, 65%) |
| CMYK | cmyk(71.7%, 62%, 0%, 34.9%) |
| CIE-LAB | lab(31.60, 29.51, -57.34) |
| CIE-LCH | lch(31.60, 64.49, 297.23°) |
| OKLab | oklab(42.2% 0.002 -0.1655) |
| OKLCH | oklch(42.2% 0.166 270.7) |
| XYZ | xyz(9.8304, 6.9115, 36.8850) |
| Luminance | 0.0691 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.31
Blueberry
#464196
ΔE00 4.34
Blue Blue
#2242C7
ΔE00 4.44
Cobalt
#0047AB
ΔE00 4.87
Ocean Blue
#4F42B5
ΔE00 5.16
Darkslateblue
#483D8B
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3FA6 #A6962F
analogous
#2F7BA6 #2F3FA6 #5B2FA6
triadic
#2F3FA6 #A62F3F #3FA62F
tetradic
#2F3FA6 #A62F7B #A6962F #2FA65B
square
#2F3FA6 #A62F7B #A6962F #2FA65B
split-complementary
#2F3FA6 #A65B2F #7BA62F
monochromatic
#141B47 #212D76 #2F3FA6 #4759CB #7784D8
Accessibility & contrast
On white
8.81
#2F3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#2F3FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3FA6
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3FA6 | 1.00 | 8.81 | 2.38 | 8.81 |
| #FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f3fa6; /* rgb */ color: rgb(47, 63, 166); /* oklch */ color: oklch(42.2% 0.166 270.7);
Tailwind
colors: {
custom: {
50: '#7874c1',
500: '#2f3fa6',
950: '#000000',
},
}SCSS
$custom: #2f3fa6; $custom-light: #7874c1; $custom-dark: #000000;
JSON
{
"hex": "#2f3fa6",
"rgb": {
"r": 47,
"g": 63,
"b": 166
},
"hsl": {
"h": 231.933,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.42199,
"c": 0.16553,
"h": 270.7
},
"luminance": 0.06913
}Semantic roles & 50–950 ramp
primary
#2F3FA6
secondary
#C1B670
accent
#CB49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81