#2F2F8D#2F2F8D
#2F2F8D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.151 H 276.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F8D |
|---|---|
| RGB | rgb(47, 47, 141) |
| HSL | hsl(240, 50%, 37%) |
| HSV | hsv(240, 67%, 55%) |
| CMYK | cmyk(66.7%, 66.7%, 0%, 44.7%) |
| CIE-LAB | lab(25.44, 30.90, -52.16) |
| CIE-LCH | lch(25.44, 60.63, 300.65°) |
| OKLab | oklab(37% 0.016 -0.1504) |
| OKLCH | oklch(37% 0.151 276.1) |
| XYZ | xyz(6.9950, 4.5599, 25.7057) |
| Luminance | 0.0456 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.07
Darkslateblue
#483D8B
ΔE00 5.40
Blueberry
#464196
ΔE00 5.68
Royal
#0C1793
ΔE00 6.27
Midnight Blue
#191970
ΔE00 6.88
Indigo Blue
#3A18B1
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F8D #8D8D2F
analogous
#2F5E8D #2F2F8D #5E2F8D
triadic
#2F2F8D #8D2F2F #2F8D2F
tetradic
#2F2F8D #8D2F5E #8D8D2F #2F8D5E
square
#2F2F8D #8D2F5E #8D8D2F #2F8D5E
split-complementary
#2F2F8D #8D5E2F #5E8D2F
monochromatic
#101031 #20205F #2F2F8D #3E3EBB #6969CD
Accessibility & contrast
On white
10.98
#2F2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2F2F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F8D
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F8D | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f2f8d; /* rgb */ color: rgb(47, 47, 141); /* oklch */ color: oklch(37.0% 0.151 276.1);
Tailwind
colors: {
custom: {
50: '#7468af',
500: '#2f2f8d',
950: '#000000',
},
}SCSS
$custom: #2f2f8d; $custom-light: #7468af; $custom-dark: #000000;
JSON
{
"hex": "#2f2f8d",
"rgb": {
"r": 47,
"g": 47,
"b": 141
},
"hsl": {
"h": 240,
"s": 50,
"l": 36.863
},
"oklch": {
"l": 0.37001,
"c": 0.15128,
"h": 276.1
},
"luminance": 0.0456
}Semantic roles & 50–950 ramp
primary
#2F2F8D
secondary
#B4B464
accent
#DA4EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F