#2F2FA5#2F2FA5
#2F2FA5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.183 H 274.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2FA5 |
|---|---|
| RGB | rgb(47, 47, 165) |
| HSL | hsl(240, 56%, 42%) |
| HSV | hsv(240, 72%, 65%) |
| CMYK | cmyk(71.5%, 71.5%, 0%, 35.3%) |
| CIE-LAB | lab(27.72, 39.27, -63.11) |
| CIE-LCH | lch(27.72, 74.33, 301.89°) |
| OKLab | oklab(39.34% 0.0129 -0.1825) |
| OKLCH | oklch(39.34% 0.183 274) |
| XYZ | xyz(8.9781, 5.3531, 36.1501) |
| Luminance | 0.0535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.18
Indigo Blue
#3A18B1
ΔE00 5.15
Blueberry
#464196
ΔE00 6.28
Royal
#0C1793
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.47
Blue Blue
#2242C7
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2FA5 #A5A52F
analogous
#2F6AA5 #2F2FA5 #6A2FA5
triadic
#2F2FA5 #A52F2F #2FA52F
tetradic
#2F2FA5 #A52F6A #A5A52F #2FA56A
square
#2F2FA5 #A52F6A #A5A52F #2FA56A
split-complementary
#2F2FA5 #A56A2F #6AA52F
monochromatic
#141446 #212175 #2F2FA5 #4747CB #7676D8
Accessibility & contrast
On white
10.14
#2F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#2F2FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2FA5
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2FA5 | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f2fa5; /* rgb */ color: rgb(47, 47, 165); /* oklch */ color: oklch(39.3% 0.183 274.0);
Tailwind
colors: {
custom: {
50: '#7968c1',
500: '#2f2fa5',
950: '#000000',
},
}SCSS
$custom: #2f2fa5; $custom-light: #7968c1; $custom-dark: #000000;
JSON
{
"hex": "#2f2fa5",
"rgb": {
"r": 47,
"g": 47,
"b": 165
},
"hsl": {
"h": 240,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.39339,
"c": 0.18294,
"h": 274
},
"luminance": 0.05354
}Semantic roles & 50–950 ramp
primary
#2F2FA5
secondary
#C0C070
accent
#DF49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81