#2F1F9D#2F1F9D
#2F1F9D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.189 H 277.1°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1F9D |
|---|---|
| RGB | rgb(47, 31, 157) |
| HSL | hsl(248, 67%, 37%) |
| HSV | hsv(248, 80%, 62%) |
| CMYK | cmyk(70.1%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(23.73, 45.53, -64.83) |
| CIE-LCH | lch(23.73, 79.22, 305.08°) |
| OKLab | oklab(36.27% 0.0232 -0.1873) |
| OKLCH | oklch(36.27% 0.189 277.1) |
| XYZ | xyz(7.7461, 4.0179, 32.2591) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.19
Royal
#0C1793
ΔE00 3.38
Cobalt Blue
#030AA7
ΔE00 3.97
Royal Blue (survey)
#0504AA
ΔE00 4.39
Ultramarine
#2000B1
ΔE00 4.39
True Blue
#010FCC
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1F9D #8D9D1F
analogous
#1F4E9D #2F1F9D #6E1F9D
triadic
#2F1F9D #9D2F1F #1F9D2F
tetradic
#2F1F9D #9D1F4E #8D9D1F #1F9D6E
square
#2F1F9D #9D1F4E #8D9D1F #1F9D6E
split-complementary
#2F1F9D #9D6E1F #4E9D1F
monochromatic
#100B37 #20156A #2F1F9D #3E29D0 #6958DE
Accessibility & contrast
On white
11.64
#2F1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2F1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1F9D
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1F9D | 1.00 | 11.64 | 1.80 | 11.64 |
| #FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f1f9d; /* rgb */ color: rgb(47, 31, 157); /* oklch */ color: oklch(36.3% 0.189 277.1);
Tailwind
colors: {
custom: {
50: '#795ebb',
500: '#2f1f9d',
950: '#000000',
},
}SCSS
$custom: #2f1f9d; $custom-light: #795ebb; $custom-dark: #000000;
JSON
{
"hex": "#2f1f9d",
"rgb": {
"r": 47,
"g": 31,
"b": 157
},
"hsl": {
"h": 247.619,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.36268,
"c": 0.18877,
"h": 277.1
},
"luminance": 0.04019
}Semantic roles & 50–950 ramp
primary
#2F1F9D
secondary
#B4C256
accent
#EA3ED4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981