#2F2FA0#2F2FA0
#2F2FA0 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.177 H 274.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2FA0 |
|---|---|
| RGB | rgb(47, 47, 160) |
| HSL | hsl(240, 55%, 41%) |
| HSV | hsv(240, 71%, 63%) |
| CMYK | cmyk(70.6%, 70.6%, 0%, 37.3%) |
| CIE-LAB | lab(27.23, 37.55, -60.89) |
| CIE-LCH | lch(27.23, 71.54, 301.66°) |
| OKLab | oklab(38.84% 0.0137 -0.176) |
| OKLCH | oklch(38.84% 0.177 274.4) |
| XYZ | xyz(8.5319, 5.1746, 33.8001) |
| Luminance | 0.0517 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.35
Indigo Blue
#3A18B1
ΔE00 5.50
Blueberry
#464196
ΔE00 6.03
Royal
#0C1793
ΔE00 6.11
Darkslateblue
#483D8B
ΔE00 6.55
Ocean Blue
#4F42B5
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2FA0 #A0A02F
analogous
#2F67A0 #2F2FA0 #672FA0
triadic
#2F2FA0 #A02F2F #2FA02F
tetradic
#2F2FA0 #A02F67 #A0A02F #2FA067
square
#2F2FA0 #A02F67 #A0A02F #2FA067
split-complementary
#2F2FA0 #A0672F #67A02F
monochromatic
#131341 #212171 #2F2FA0 #4444C8 #7373D6
Accessibility & contrast
On white
10.32
#2F2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2F2FA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2FA0
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2FA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2FA0 | 1.00 | 10.32 | 2.04 | 10.32 |
| #FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2f2fa0; /* rgb */ color: rgb(47, 47, 160); /* oklch */ color: oklch(38.8% 0.177 274.4);
Tailwind
colors: {
custom: {
50: '#7868bd',
500: '#2f2fa0',
950: '#000000',
},
}SCSS
$custom: #2f2fa0; $custom-light: #7868bd; $custom-dark: #000000;
JSON
{
"hex": "#2f2fa0",
"rgb": {
"r": 47,
"g": 47,
"b": 160
},
"hsl": {
"h": 240,
"s": 54.589,
"l": 40.588
},
"oklch": {
"l": 0.38838,
"c": 0.17652,
"h": 274.4
},
"luminance": 0.05175
}Semantic roles & 50–950 ramp
primary
#2F2FA0
secondary
#BEBE6D
accent
#DE4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81