#2F1FA0#2F1FA0
#2F1FA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.192 H 276.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1FA0 |
|---|---|
| RGB | rgb(47, 31, 160) |
| HSL | hsl(247, 68%, 37%) |
| HSV | hsv(247, 81%, 63%) |
| CMYK | cmyk(70.6%, 80.6%, 0%, 37.3%) |
| CIE-LAB | lab(24.07, 46.46, -66.10) |
| CIE-LCH | lch(24.07, 80.79, 305.10°) |
| OKLab | oklab(36.6% 0.0224 -0.191) |
| OKLCH | oklch(36.6% 0.192 276.7) |
| XYZ | xyz(8.0054, 4.1216, 33.6246) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.84
Royal
#0C1793
ΔE00 3.60
Cobalt Blue
#030AA7
ΔE00 3.89
Ultramarine
#2000B1
ΔE00 4.18
Royal Blue (survey)
#0504AA
ΔE00 4.28
True Blue
#010FCC
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1FA0 #90A01F
analogous
#1F4FA0 #2F1FA0 #701FA0
triadic
#2F1FA0 #A02F1F #1FA02F
tetradic
#2F1FA0 #A01F4F #90A01F #1FA070
square
#2F1FA0 #A01F4F #90A01F #1FA070
split-complementary
#2F1FA0 #A0701F #4FA01F
monochromatic
#110B39 #20156D #2F1FA0 #3E29D3 #6B5ADF
Accessibility & contrast
On white
11.51
#2F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2F1FA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1FA0
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1FA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1FA0 | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f1fa0; /* rgb */ color: rgb(47, 31, 160); /* oklch */ color: oklch(36.6% 0.192 276.7);
Tailwind
colors: {
custom: {
50: '#7a5fbd',
500: '#2f1fa0',
950: '#000000',
},
}SCSS
$custom: #2f1fa0; $custom-light: #7a5fbd; $custom-dark: #000000;
JSON
{
"hex": "#2f1fa0",
"rgb": {
"r": 47,
"g": 31,
"b": 160
},
"hsl": {
"h": 247.442,
"s": 67.539,
"l": 37.451
},
"oklch": {
"l": 0.36604,
"c": 0.19235,
"h": 276.7
},
"luminance": 0.04122
}Semantic roles & 50–950 ramp
primary
#2F1FA0
secondary
#B6C358
accent
#EA3DD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981