#2F1F90#2F1F90
#2F1F90 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.173 H 278.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F90 |
|---|---|
| RGB | rgb(47, 31, 144) |
| HSL | hsl(248, 65%, 34%) |
| HSV | hsv(248, 78%, 56%) |
| CMYK | cmyk(67.4%, 78.5%, 0%, 43.5%) |
| CIE-LAB | lab(22.29, 41.43, -59.19) |
| CIE-LCH | lch(22.29, 72.26, 304.99°) |
| OKLab | oklab(34.84% 0.0267 -0.1709) |
| OKLCH | oklch(34.84% 0.173 278.9) |
| XYZ | xyz(6.6947, 3.5974, 26.7217) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.06
Cobalt Blue
#030AA7
ΔE00 4.84
Indigo Blue
#3A18B1
ΔE00 4.90
Indigo (survey)
#380282
ΔE00 5.16
Royal Blue (survey)
#0504AA
ΔE00 5.32
Midnight Blue
#191970
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F90 #80901F
analogous
#1F4790 #2F1F90 #681F90
triadic
#2F1F90 #902F1F #1F902F
tetradic
#2F1F90 #901F47 #80901F #1F9068
square
#2F1F90 #901F47 #80901F #1F9068
split-complementary
#2F1F90 #90681F #47901F
monochromatic
#0E092B #1F145E #2F1F90 #3F2AC2 #6450D9
Accessibility & contrast
On white
12.21
#2F1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2F1F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F90
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F90 | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f1f90; /* rgb */ color: rgb(47, 31, 144); /* oklch */ color: oklch(34.8% 0.173 278.9);
Tailwind
colors: {
custom: {
50: '#765eb2',
500: '#2f1f90',
950: '#000000',
},
}SCSS
$custom: #2f1f90; $custom-light: #765eb2; $custom-dark: #000000;
JSON
{
"hex": "#2f1f90",
"rgb": {
"r": 47,
"g": 31,
"b": 144
},
"hsl": {
"h": 248.496,
"s": 64.571,
"l": 34.314
},
"oklch": {
"l": 0.34839,
"c": 0.17303,
"h": 278.9
},
"luminance": 0.03598
}Semantic roles & 50–950 ramp
primary
#2F1F90
secondary
#ADBC4E
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980