#2F1F8C#2F1F8C
#2F1F8C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.168 H 279.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F8C |
|---|---|
| RGB | rgb(47, 31, 140) |
| HSL | hsl(249, 64%, 34%) |
| HSV | hsv(249, 78%, 55%) |
| CMYK | cmyk(66.4%, 77.9%, 0%, 45.1%) |
| CIE-LAB | lab(21.86, 40.16, -57.42) |
| CIE-LCH | lch(21.86, 70.07, 304.97°) |
| OKLab | oklab(34.41% 0.0278 -0.1658) |
| OKLCH | oklch(34.41% 0.168 279.5) |
| XYZ | xyz(6.3944, 3.4772, 25.1401) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.22
Indigo (survey)
#380282
ΔE00 5.00
Midnight Blue
#191970
ΔE00 5.04
Cobalt Blue
#030AA7
ΔE00 5.25
Indigo Blue
#3A18B1
ΔE00 5.47
Royal Blue (survey)
#0504AA
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F8C #7C8C1F
analogous
#1F458C #2F1F8C #651F8C
triadic
#2F1F8C #8C2F1F #1F8C2F
tetradic
#2F1F8C #8C1F45 #7C8C1F #1F8C65
square
#2F1F8C #8C1F45 #7C8C1F #1F8C65
split-complementary
#2F1F8C #8C651F #458C1F
monochromatic
#0D0928 #1E145A #2F1F8C #402ABE #624ED8
Accessibility & contrast
On white
12.38
#2F1F8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2F1F8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F8C
12.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F8C | 1.00 | 12.38 | 1.70 | 12.38 |
| #FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f1f8c; /* rgb */ color: rgb(47, 31, 140); /* oklch */ color: oklch(34.4% 0.168 279.5);
Tailwind
colors: {
custom: {
50: '#755daf',
500: '#2f1f8c',
950: '#000000',
},
}SCSS
$custom: #2f1f8c; $custom-light: #755daf; $custom-dark: #000000;
JSON
{
"hex": "#2f1f8c",
"rgb": {
"r": 47,
"g": 31,
"b": 140
},
"hsl": {
"h": 248.807,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.34408,
"c": 0.16808,
"h": 279.5
},
"luminance": 0.03478
}Semantic roles & 50–950 ramp
primary
#2F1F8C
secondary
#AABB4C
accent
#E741CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F