#2F146B#2F146B
#2F146B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.138 H 289.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2F146B |
|---|---|
| RGB | rgb(47, 20, 107) |
| HSL | hsl(259, 69%, 25%) |
| HSV | hsv(259, 81%, 42%) |
| CMYK | cmyk(56.1%, 81.3%, 0%, 58%) |
| CIE-LAB | lab(16.34, 35.63, -45.46) |
| CIE-LCH | lch(16.34, 57.76, 308.09°) |
| OKLab | oklab(29.48% 0.0452 -0.1307) |
| OKLCH | oklch(29.48% 0.138 289.1) |
| XYZ | xyz(4.0755, 2.1660, 14.1104) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.82
Dark Indigo
#1F0954
ΔE00 4.47
Indigo (survey)
#380282
ΔE00 4.70
Dark Royal Blue
#02066F
ΔE00 5.17
Darkblue (survey)
#030764
ΔE00 5.18
Deep Blue
#040273
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F146B #506B14
analogous
#14246B #2F146B #5B146B
triadic
#2F146B #6B2F14 #146B2F
tetradic
#2F146B #6B1424 #506B14 #146B5B
square
#2F146B #6B1424 #506B14 #146B5B
split-complementary
#2F146B #6B5B14 #246B14
monochromatic
#0B051A #180A37 #2F146B #461E9F #5C27D2
Accessibility & contrast
On white
14.65
#2F146B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2F146B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F146B
14.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F146B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F146B | 1.00 | 14.65 | 1.43 | 14.65 |
| #FFFFFF | 14.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#182D3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2f146b; /* rgb */ color: rgb(47, 20, 107); /* oklch */ color: oklch(29.5% 0.138 289.1);
Tailwind
colors: {
custom: {
50: '#6f5596',
500: '#2f146b',
950: '#000000',
},
}SCSS
$custom: #2f146b; $custom-light: #6f5596; $custom-dark: #000000;
JSON
{
"hex": "#2f146b",
"rgb": {
"r": 47,
"g": 20,
"b": 107
},
"hsl": {
"h": 258.621,
"s": 68.504,
"l": 24.902
},
"oklch": {
"l": 0.29484,
"c": 0.13831,
"h": 289.1
},
"luminance": 0.02166
}Semantic roles & 50–950 ramp
primary
#2F146B
secondary
#81A239
accent
#EB3CB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E