#3D126F#3D126F
#3D126F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.146 H 298.2°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).
Color values
| HEX | #3D126F |
|---|---|
| RGB | rgb(61, 18, 111) |
| HSL | hsl(268, 72%, 25%) |
| HSV | hsv(268, 84%, 44%) |
| CMYK | cmyk(45%, 83.8%, 0%, 56.5%) |
| CIE-LAB | lab(18.24, 39.87, -44.87) |
| CIE-LCH | lch(18.24, 60.02, 311.62°) |
| OKLab | oklab(31.35% 0.0688 -0.1285) |
| OKLCH | oklch(31.35% 0.146 298.2) |
| XYZ | xyz(5.0093, 2.5723, 15.2684) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.54
Indigo
#4B0082
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 4.07
Dark Indigo
#1F0954
ΔE00 6.16
Midnight Blue
#191970
ΔE00 6.19
Dark Royal Blue
#02066F
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D126F #446F12
analogous
#12156F #3D126F #6B126F
triadic
#3D126F #6F3D12 #126F3D
tetradic
#3D126F #6F1215 #446F12 #126F6B
square
#3D126F #6F1215 #446F12 #126F6B
split-complementary
#3D126F #6F6B12 #156F12
monochromatic
#0E041A #20093A #3D126F #5A1BA4 #7723D8
Accessibility & contrast
On white
13.87
#3D126F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#3D126F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D126F
13.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D126F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D126F | 1.00 | 13.87 | 1.51 | 13.87 |
| #FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#302C41
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3d126f; /* rgb */ color: rgb(61, 18, 111); /* oklch */ color: oklch(31.3% 0.146 298.2);
Tailwind
colors: {
custom: {
50: '#785699',
500: '#3d126f',
950: '#000000',
},
}SCSS
$custom: #3d126f; $custom-light: #785699; $custom-dark: #000000;
JSON
{
"hex": "#3d126f",
"rgb": {
"r": 61,
"g": 18,
"b": 111
},
"hsl": {
"h": 267.742,
"s": 72.093,
"l": 25.294
},
"oklch": {
"l": 0.31346,
"c": 0.1457,
"h": 298.2
},
"luminance": 0.02572
}Semantic roles & 50–950 ramp
primary
#3D126F
secondary
#73A637
accent
#EF399B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E