#2F1F9A#2F1F9A
#2F1F9A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.185 H 277.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F9A |
|---|---|
| RGB | rgb(47, 31, 154) |
| HSL | hsl(248, 66%, 36%) |
| HSV | hsv(248, 80%, 60%) |
| CMYK | cmyk(69.5%, 79.9%, 0%, 39.6%) |
| CIE-LAB | lab(23.39, 44.59, -63.55) |
| CIE-LCH | lch(23.39, 77.63, 305.06°) |
| OKLab | oklab(35.94% 0.024 -0.1836) |
| OKLCH | oklch(35.94% 0.185 277.5) |
| XYZ | xyz(7.4931, 3.9167, 30.9267) |
| Luminance | 0.0392 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.21
Indigo Blue
#3A18B1
ΔE00 3.57
Cobalt Blue
#030AA7
ΔE00 4.10
Royal Blue (survey)
#0504AA
ΔE00 4.54
Ultramarine
#2000B1
ΔE00 4.63
Indigo (survey)
#380282
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F9A #8A9A1F
analogous
#1F4D9A #2F1F9A #6D1F9A
triadic
#2F1F9A #9A2F1F #1F9A2F
tetradic
#2F1F9A #9A1F4D #8A9A1F #1F9A6D
square
#2F1F9A #9A1F4D #8A9A1F #1F9A6D
split-complementary
#2F1F9A #9A6D1F #4D9A1F
monochromatic
#100A34 #1F1567 #2F1F9A #3F29CD #6856DD
Accessibility & contrast
On white
11.78
#2F1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2F1F9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F9A
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F9A | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f1f9a; /* rgb */ color: rgb(47, 31, 154); /* oklch */ color: oklch(35.9% 0.185 277.5);
Tailwind
colors: {
custom: {
50: '#785eb9',
500: '#2f1f9a',
950: '#000000',
},
}SCSS
$custom: #2f1f9a; $custom-light: #785eb9; $custom-dark: #000000;
JSON
{
"hex": "#2f1f9a",
"rgb": {
"r": 47,
"g": 31,
"b": 154
},
"hsl": {
"h": 247.805,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.35935,
"c": 0.18518,
"h": 277.5
},
"luminance": 0.03917
}Semantic roles & 50–950 ramp
primary
#2F1F9A
secondary
#B3C154
accent
#E93ED3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981