#2F2C7F#2F2C7F
#2F2C7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.136 H 278.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2C7F |
|---|---|
| RGB | rgb(47, 44, 127) |
| HSL | hsl(242, 49%, 34%) |
| HSV | hsv(242, 65%, 50%) |
| CMYK | cmyk(63%, 65.4%, 0%, 50.2%) |
| CIE-LAB | lab(23.46, 27.90, -46.63) |
| CIE-LCH | lch(23.46, 54.34, 300.89°) |
| OKLab | oklab(35.17% 0.0199 -0.1342) |
| OKLCH | oklch(35.17% 0.136 278.4) |
| XYZ | xyz(5.9025, 3.9376, 20.5235) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.44
Darkslateblue
#483D8B
ΔE00 5.78
Royal
#0C1793
ΔE00 6.69
Blueberry
#464196
ΔE00 6.81
Sapphire (survey)
#2138AB
ΔE00 7.30
Indigo (survey)
#380282
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2C7F #7C7F2C
analogous
#2C527F #2F2C7F #582C7F
triadic
#2F2C7F #7F2F2C #2C7F2F
tetradic
#2F2C7F #7F2C52 #7C7F2C #2C7F58
square
#2F2C7F #7F2C52 #7C7F2C #2C7F58
split-complementary
#2F2C7F #7F582C #527F2C
monochromatic
#0D0D24 #1E1C52 #2F2C7F #403CAC #625EC7
Accessibility & contrast
On white
11.75
#2F2C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2F2C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2C7F
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2C7F | 1.00 | 11.75 | 1.79 | 11.75 |
| #FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f2c7f; /* rgb */ color: rgb(47, 44, 127); /* oklch */ color: oklch(35.2% 0.136 278.4);
Tailwind
colors: {
custom: {
50: '#7165a5',
500: '#2f2c7f',
950: '#000000',
},
}SCSS
$custom: #2f2c7f; $custom-light: #7165a5; $custom-dark: #000000;
JSON
{
"hex": "#2f2c7f",
"rgb": {
"r": 47,
"g": 44,
"b": 127
},
"hsl": {
"h": 242.169,
"s": 48.538,
"l": 33.529
},
"oklch": {
"l": 0.35173,
"c": 0.13569,
"h": 278.4
},
"luminance": 0.03938
}Semantic roles & 50–950 ramp
primary
#2F2C7F
secondary
#AAAD59
accent
#D850D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F