#2F2FA7#2F2FA7
#2F2FA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.185 H 273.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2FA7 |
|---|---|
| RGB | rgb(47, 47, 167) |
| HSL | hsl(240, 56%, 42%) |
| HSV | hsv(240, 72%, 65%) |
| CMYK | cmyk(71.9%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(27.92, 39.95, -63.99) |
| CIE-LCH | lch(27.92, 75.44, 301.98°) |
| OKLab | oklab(39.54% 0.0126 -0.185) |
| OKLCH | oklch(39.54% 0.185 273.9) |
| XYZ | xyz(9.1615, 5.4265, 37.1163) |
| Luminance | 0.0543 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.15
Indigo Blue
#3A18B1
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 6.37
Blueberry
#464196
ΔE00 6.38
Royal
#0C1793
ΔE00 6.43
True Blue
#010FCC
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2FA7 #A7A72F
analogous
#2F6BA7 #2F2FA7 #6B2FA7
triadic
#2F2FA7 #A72F2F #2FA72F
tetradic
#2F2FA7 #A72F6B #A7A72F #2FA76B
square
#2F2FA7 #A72F6B #A7A72F #2FA76B
split-complementary
#2F2FA7 #A76B2F #6BA72F
monochromatic
#141447 #222277 #2F2FA7 #4848CB #7878D9
Accessibility & contrast
On white
10.07
#2F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#2F2FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2FA7
10.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2FA7 | 1.00 | 10.07 | 2.09 | 10.07 |
| #FFFFFF | 10.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2f2fa7; /* rgb */ color: rgb(47, 47, 167); /* oklch */ color: oklch(39.5% 0.185 273.9);
Tailwind
colors: {
custom: {
50: '#7a69c2',
500: '#2f2fa7',
950: '#000000',
},
}SCSS
$custom: #2f2fa7; $custom-light: #7a69c2; $custom-dark: #000000;
JSON
{
"hex": "#2f2fa7",
"rgb": {
"r": 47,
"g": 47,
"b": 167
},
"hsl": {
"h": 240,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.39542,
"c": 0.18547,
"h": 273.9
},
"luminance": 0.05427
}Semantic roles & 50–950 ramp
primary
#2F2FA7
secondary
#C1C171
accent
#DF48DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82