#2F2FA2#2F2FA2
#2F2FA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.179 H 274.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2FA2 |
|---|---|
| RGB | rgb(47, 47, 162) |
| HSL | hsl(240, 55%, 41%) |
| HSV | hsv(240, 71%, 64%) |
| CMYK | cmyk(71%, 71%, 0%, 36.5%) |
| CIE-LAB | lab(27.42, 38.24, -61.78) |
| CIE-LCH | lch(27.42, 72.66, 301.76°) |
| OKLab | oklab(39.04% 0.0134 -0.1786) |
| OKLCH | oklch(39.04% 0.179 274.3) |
| XYZ | xyz(8.7082, 5.2452, 34.7289) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.26
Indigo Blue
#3A18B1
ΔE00 5.35
Blueberry
#464196
ΔE00 6.12
Royal
#0C1793
ΔE00 6.19
Ocean Blue
#4F42B5
ΔE00 6.65
Darkslateblue
#483D8B
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2FA2 #A2A22F
analogous
#2F68A2 #2F2FA2 #682FA2
triadic
#2F2FA2 #A22F2F #2FA22F
tetradic
#2F2FA2 #A22F68 #A2A22F #2FA268
square
#2F2FA2 #A22F68 #A2A22F #2FA268
split-complementary
#2F2FA2 #A2682F #68A22F
monochromatic
#131343 #212173 #2F2FA2 #4545C9 #7575D7
Accessibility & contrast
On white
10.25
#2F2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2F2FA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2FA2
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2FA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2FA2 | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f2fa2; /* rgb */ color: rgb(47, 47, 162); /* oklch */ color: oklch(39.0% 0.179 274.3);
Tailwind
colors: {
custom: {
50: '#7968bf',
500: '#2f2fa2',
950: '#000000',
},
}SCSS
$custom: #2f2fa2; $custom-light: #7968bf; $custom-dark: #000000;
JSON
{
"hex": "#2f2fa2",
"rgb": {
"r": 47,
"g": 47,
"b": 162
},
"hsl": {
"h": 240,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.39038,
"c": 0.1791,
"h": 274.3
},
"luminance": 0.05246
}Semantic roles & 50–950 ramp
primary
#2F2FA2
secondary
#BFBF6E
accent
#DE49DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81