#2F2FA8#2F2FA8
#2F2FA8 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.187 H 273.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2FA8 |
|---|---|
| RGB | rgb(47, 47, 168) |
| HSL | hsl(240, 56%, 42%) |
| HSV | hsv(240, 72%, 66%) |
| CMYK | cmyk(72%, 72%, 0%, 34.1%) |
| CIE-LAB | lab(28.02, 40.30, -64.43) |
| CIE-LCH | lch(28.02, 75.99, 302.02°) |
| OKLab | oklab(39.64% 0.0124 -0.1863) |
| OKLCH | oklch(39.64% 0.187 273.8) |
| XYZ | xyz(9.2543, 5.4636, 37.6051) |
| Luminance | 0.0546 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.14
Indigo Blue
#3A18B1
ΔE00 4.98
Ocean Blue
#4F42B5
ΔE00 6.31
Blueberry
#464196
ΔE00 6.44
Royal
#0C1793
ΔE00 6.49
True Blue
#010FCC
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2FA8 #A8A82F
analogous
#2F6CA8 #2F2FA8 #6C2FA8
triadic
#2F2FA8 #A82F2F #2FA82F
tetradic
#2F2FA8 #A82F6C #A8A82F #2FA86C
square
#2F2FA8 #A82F6C #A8A82F #2FA86C
split-complementary
#2F2FA8 #A86C2F #6CA82F
monochromatic
#141448 #222278 #2F2FA8 #4848CC #7878D9
Accessibility & contrast
On white
10.03
#2F2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#2F2FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2FA8
10.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2FA8 | 1.00 | 10.03 | 2.09 | 10.03 |
| #FFFFFF | 10.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2f2fa8; /* rgb */ color: rgb(47, 47, 168); /* oklch */ color: oklch(39.6% 0.187 273.8);
Tailwind
colors: {
custom: {
50: '#7a69c3',
500: '#2f2fa8',
950: '#000000',
},
}SCSS
$custom: #2f2fa8; $custom-light: #7a69c3; $custom-dark: #000000;
JSON
{
"hex": "#2f2fa8",
"rgb": {
"r": 47,
"g": 47,
"b": 168
},
"hsl": {
"h": 240,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.39643,
"c": 0.18674,
"h": 273.8
},
"luminance": 0.05465
}Semantic roles & 50–950 ramp
primary
#2F2FA8
secondary
#C1C171
accent
#E048E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82