#2F1FA6#2F1FA6
#2F1FA6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.3% C 0.199 H 276.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1FA6 |
|---|---|
| RGB | rgb(47, 31, 166) |
| HSL | hsl(247, 69%, 39%) |
| HSV | hsv(247, 81%, 65%) |
| CMYK | cmyk(71.7%, 81.3%, 0%, 34.9%) |
| CIE-LAB | lab(24.75, 48.31, -68.61) |
| CIE-LCH | lch(24.75, 83.91, 305.15°) |
| OKLab | oklab(37.28% 0.0207 -0.1983) |
| OKLCH | oklch(37.28% 0.199 276) |
| XYZ | xyz(8.5430, 4.3367, 36.4558) |
| Luminance | 0.0434 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.20
Cobalt Blue
#030AA7
ΔE00 3.87
Ultramarine
#2000B1
ΔE00 3.89
Royal
#0C1793
ΔE00 4.14
Royal Blue (survey)
#0504AA
ΔE00 4.20
True Blue
#010FCC
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1FA6 #96A61F
analogous
#1F52A6 #2F1FA6 #721FA6
triadic
#2F1FA6 #A62F1F #1FA62F
tetradic
#2F1FA6 #A61F52 #96A61F #1FA672
square
#2F1FA6 #A61F52 #96A61F #1FA672
split-complementary
#2F1FA6 #A6721F #52A61F
monochromatic
#120C3F #201572 #2F1FA6 #3F2BD7 #6E5EE1
Accessibility & contrast
On white
11.25
#2F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2F1FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1FA6
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1FA6 | 1.00 | 11.25 | 1.87 | 11.25 |
| #FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2f1fa6; /* rgb */ color: rgb(47, 31, 166); /* oklch */ color: oklch(37.3% 0.199 276.0);
Tailwind
colors: {
custom: {
50: '#7b5fc2',
500: '#2f1fa6',
950: '#000000',
},
}SCSS
$custom: #2f1fa6; $custom-light: #7b5fc2; $custom-dark: #000000;
JSON
{
"hex": "#2f1fa6",
"rgb": {
"r": 47,
"g": 31,
"b": 166
},
"hsl": {
"h": 247.111,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.3728,
"c": 0.19941,
"h": 276
},
"luminance": 0.04337
}Semantic roles & 50–950 ramp
primary
#2F1FA6
secondary
#B9C55B
accent
#EB3CD7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982