#2F125F#2F125F
#2F125F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.126 H 293.7°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2F125F |
|---|---|
| RGB | rgb(47, 18, 95) |
| HSL | hsl(263, 68%, 22%) |
| HSV | hsv(263, 81%, 37%) |
| CMYK | cmyk(50.5%, 81.1%, 0%, 62.7%) |
| CIE-LAB | lab(14.75, 33.06, -40.13) |
| CIE-LCH | lch(14.75, 51.99, 309.48°) |
| OKLab | oklab(28% 0.0506 -0.1151) |
| OKLCH | oklch(28% 0.126 293.7) |
| XYZ | xyz(3.4536, 1.8631, 11.0019) |
| Luminance | 0.0186 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.16
Midnight Blue
#191970
ΔE00 5.30
Darkblue (survey)
#030764
ΔE00 5.76
Royal Purple (survey)
#4B006E
ΔE00 6.03
Dark Blue
#00035B
ΔE00 6.14
Dark Royal Blue
#02066F
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F125F #425F12
analogous
#121C5F #2F125F #56125F
triadic
#2F125F #5F2F12 #125F2F
tetradic
#2F125F #5F121C #425F12 #125F56
square
#2F125F #5F121C #425F12 #125F56
split-complementary
#2F125F #5F5612 #1C5F12
monochromatic
#0D051A #16082C #2F125F #481C92 #6225C6
Accessibility & contrast
On white
15.30
#2F125F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2F125F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F125F
15.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F125F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F125F | 1.00 | 15.30 | 1.37 | 15.30 |
| #FFFFFF | 15.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#202738
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2f125f; /* rgb */ color: rgb(47, 18, 95); /* oklch */ color: oklch(28.0% 0.126 293.7);
Tailwind
colors: {
custom: {
50: '#6d538d',
500: '#2f125f',
950: '#000000',
},
}SCSS
$custom: #2f125f; $custom-light: #6d538d; $custom-dark: #000000;
JSON
{
"hex": "#2f125f",
"rgb": {
"r": 47,
"g": 18,
"b": 95
},
"hsl": {
"h": 262.597,
"s": 68.142,
"l": 22.157
},
"oklch": {
"l": 0.28001,
"c": 0.12574,
"h": 293.7
},
"luminance": 0.01863
}Semantic roles & 50–950 ramp
primary
#2F125F
secondary
#729736
accent
#EB3DA9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D