#2F2F97#2F2F97
#2F2F97 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.165 H 275.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F97 |
|---|---|
| RGB | rgb(47, 47, 151) |
| HSL | hsl(240, 53%, 39%) |
| HSV | hsv(240, 69%, 59%) |
| CMYK | cmyk(68.9%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(26.36, 34.43, -56.81) |
| CIE-LCH | lch(26.36, 66.43, 301.21°) |
| OKLab | oklab(37.95% 0.0149 -0.1641) |
| OKLCH | oklch(37.95% 0.165 275.2) |
| XYZ | xyz(7.7729, 4.8710, 29.8027) |
| Luminance | 0.0487 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.99
Blueberry
#464196
ΔE00 5.73
Darkslateblue
#483D8B
ΔE00 5.91
Royal
#0C1793
ΔE00 5.98
Indigo Blue
#3A18B1
ΔE00 6.34
Ocean Blue
#4F42B5
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F97 #97972F
analogous
#2F6397 #2F2F97 #632F97
triadic
#2F2F97 #972F2F #2F972F
tetradic
#2F2F97 #972F63 #97972F #2F9763
square
#2F2F97 #972F63 #97972F #2F9763
split-complementary
#2F2F97 #97632F #63972F
monochromatic
#12123A #202068 #2F2F97 #4040C3 #6E6ED2
Accessibility & contrast
On white
10.64
#2F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2F2F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F97
10.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F97 | 1.00 | 10.64 | 1.97 | 10.64 |
| #FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f2f97; /* rgb */ color: rgb(47, 47, 151); /* oklch */ color: oklch(38.0% 0.165 275.2);
Tailwind
colors: {
custom: {
50: '#7668b7',
500: '#2f2f97',
950: '#000000',
},
}SCSS
$custom: #2f2f97; $custom-light: #7668b7; $custom-dark: #000000;
JSON
{
"hex": "#2f2f97",
"rgb": {
"r": 47,
"g": 47,
"b": 151
},
"hsl": {
"h": 240,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.37953,
"c": 0.16474,
"h": 275.2
},
"luminance": 0.04872
}Semantic roles & 50–950 ramp
primary
#2F2F97
secondary
#B9B968
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80