#2F2F9D#2F2F9D
#2F2F9D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.173 H 274.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F9D |
|---|---|
| RGB | rgb(47, 47, 157) |
| HSL | hsl(240, 54%, 40%) |
| HSV | hsv(240, 70%, 62%) |
| CMYK | cmyk(70.1%, 70.1%, 0%, 38.4%) |
| CIE-LAB | lab(26.94, 36.52, -59.54) |
| CIE-LCH | lch(26.94, 69.85, 301.52°) |
| OKLab | oklab(38.54% 0.0141 -0.172) |
| OKLCH | oklch(38.54% 0.173 274.7) |
| XYZ | xyz(8.2726, 5.0709, 32.4346) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.52
Indigo Blue
#3A18B1
ΔE00 5.75
Blueberry
#464196
ΔE00 5.91
Royal
#0C1793
ΔE00 6.03
Darkslateblue
#483D8B
ΔE00 6.32
Ocean Blue
#4F42B5
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F9D #9D9D2F
analogous
#2F669D #2F2F9D #662F9D
triadic
#2F2F9D #9D2F2F #2F9D2F
tetradic
#2F2F9D #9D2F66 #9D9D2F #2F9D66
square
#2F2F9D #9D2F66 #9D9D2F #2F9D66
split-complementary
#2F2F9D #9D662F #669D2F
monochromatic
#13133F #21216E #2F2F9D #4343C7 #7272D5
Accessibility & contrast
On white
10.42
#2F2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#2F2F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F9D
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F9D | 1.00 | 10.42 | 2.01 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2f2f9d; /* rgb */ color: rgb(47, 47, 157); /* oklch */ color: oklch(38.5% 0.173 274.7);
Tailwind
colors: {
custom: {
50: '#7768bb',
500: '#2f2f9d',
950: '#000000',
},
}SCSS
$custom: #2f2f9d; $custom-light: #7768bb; $custom-dark: #000000;
JSON
{
"hex": "#2f2f9d",
"rgb": {
"r": 47,
"g": 47,
"b": 157
},
"hsl": {
"h": 240,
"s": 53.922,
"l": 40
},
"oklch": {
"l": 0.3854,
"c": 0.17263,
"h": 274.7
},
"luminance": 0.05072
}Semantic roles & 50–950 ramp
primary
#2F2F9D
secondary
#BCBC6B
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81