#2F187F#2F187F
#2F187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.159 H 283.1°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2F187F |
|---|---|
| RGB | rgb(47, 24, 127) |
| HSL | hsl(253, 68%, 30%) |
| HSV | hsv(253, 81%, 50%) |
| CMYK | cmyk(63%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(19.18, 39.72, -53.66) |
| CIE-LCH | lch(19.18, 66.76, 306.51°) |
| OKLab | oklab(32.11% 0.0359 -0.1547) |
| OKLCH | oklch(32.11% 0.159 283.1) |
| XYZ | xyz(5.3285, 2.7895, 20.3322) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.48
Midnight Blue
#191970
ΔE00 3.78
Royal
#0C1793
ΔE00 4.12
Darkblue
#00008B
ΔE00 5.16
Navy
#000080
ΔE00 5.21
Dark Royal Blue
#02066F
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F187F #687F18
analogous
#18357F #2F187F #63187F
triadic
#2F187F #7F2F18 #187F2F
tetradic
#2F187F #7F1835 #687F18 #187F63
square
#2F187F #7F1835 #687F18 #187F63
split-complementary
#2F187F #7F6318 #357F18
monochromatic
#0A051A #1C0E4C #2F187F #4222B2 #5C38D9
Accessibility & contrast
On white
13.48
#2F187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2F187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F187F
13.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F187F | 1.00 | 13.48 | 1.56 | 13.48 |
| #FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f187f; /* rgb */ color: rgb(47, 24, 127); /* oklch */ color: oklch(32.1% 0.159 283.1);
Tailwind
colors: {
custom: {
50: '#7359a5',
500: '#2f187f',
950: '#000000',
},
}SCSS
$custom: #2f187f; $custom-light: #7359a5; $custom-dark: #000000;
JSON
{
"hex": "#2f187f",
"rgb": {
"r": 47,
"g": 24,
"b": 127
},
"hsl": {
"h": 253.398,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.32112,
"c": 0.15884,
"h": 283.1
},
"luminance": 0.0279
}Semantic roles & 50–950 ramp
primary
#2F187F
secondary
#99B33F
accent
#EB3DC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F