#2F1F8E#2F1F8E
#2F1F8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.171 H 279.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F8E |
|---|---|
| RGB | rgb(47, 31, 142) |
| HSL | hsl(249, 64%, 34%) |
| HSV | hsv(249, 78%, 56%) |
| CMYK | cmyk(66.9%, 78.2%, 0%, 44.3%) |
| CIE-LAB | lab(22.08, 40.80, -58.31) |
| CIE-LCH | lch(22.08, 71.16, 304.98°) |
| OKLab | oklab(34.62% 0.0273 -0.1684) |
| OKLCH | oklch(34.62% 0.171 279.2) |
| XYZ | xyz(6.5432, 3.5368, 25.9238) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.13
Cobalt Blue
#030AA7
ΔE00 5.04
Indigo (survey)
#380282
ΔE00 5.07
Indigo Blue
#3A18B1
ΔE00 5.18
Midnight Blue
#191970
ΔE00 5.30
Royal Blue (survey)
#0504AA
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F8E #7E8E1F
analogous
#1F478E #2F1F8E #671F8E
triadic
#2F1F8E #8E2F1F #1F8E2F
tetradic
#2F1F8E #8E1F47 #7E8E1F #1F8E67
square
#2F1F8E #8E1F47 #7E8E1F #1F8E67
split-complementary
#2F1F8E #8E671F #478E1F
monochromatic
#0E092A #1E145C #2F1F8E #402AC0 #634FD9
Accessibility & contrast
On white
12.30
#2F1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2F1F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F8E
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F8E | 1.00 | 12.30 | 1.71 | 12.30 |
| #FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f1f8e; /* rgb */ color: rgb(47, 31, 142); /* oklch */ color: oklch(34.6% 0.171 279.2);
Tailwind
colors: {
custom: {
50: '#765db0',
500: '#2f1f8e',
950: '#000000',
},
}SCSS
$custom: #2f1f8e; $custom-light: #765db0; $custom-dark: #000000;
JSON
{
"hex": "#2f1f8e",
"rgb": {
"r": 47,
"g": 31,
"b": 142
},
"hsl": {
"h": 248.649,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.34623,
"c": 0.17055,
"h": 279.2
},
"luminance": 0.03537
}Semantic roles & 50–950 ramp
primary
#2F1F8E
secondary
#ACBB4D
accent
#E741CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980