#2F197C#2F197C
#2F197C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.154 H 283.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2F197C |
|---|---|
| RGB | rgb(47, 25, 124) |
| HSL | hsl(253, 66%, 29%) |
| HSV | hsv(253, 80%, 49%) |
| CMYK | cmyk(62.1%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(19.03, 38.28, -51.99) |
| CIE-LCH | lch(19.03, 64.57, 306.36°) |
| OKLab | oklab(31.91% 0.0362 -0.1499) |
| OKLCH | oklch(31.91% 0.154 283.6) |
| XYZ | xyz(5.1569, 2.7545, 19.3248) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.46
Indigo (survey)
#380282
ΔE00 3.80
Royal
#0C1793
ΔE00 4.52
Dark Royal Blue
#02066F
ΔE00 5.40
Navy
#000080
ΔE00 5.47
Deep Blue
#040273
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F197C #667C19
analogous
#19357C #2F197C #61197C
triadic
#2F197C #7C2F19 #197C2F
tetradic
#2F197C #7C1935 #667C19 #197C61
square
#2F197C #7C1935 #667C19 #197C61
split-complementary
#2F197C #7C6119 #357C19
monochromatic
#0A0519 #1C0F49 #2F197C #4223AF #5C38D7
Accessibility & contrast
On white
13.54
#2F197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2F197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F197C
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F197C | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f197c; /* rgb */ color: rgb(47, 25, 124); /* oklch */ color: oklch(31.9% 0.154 283.6);
Tailwind
colors: {
custom: {
50: '#7259a3',
500: '#2f197c',
950: '#000000',
},
}SCSS
$custom: #2f197c; $custom-light: #7259a3; $custom-dark: #000000;
JSON
{
"hex": "#2f197c",
"rgb": {
"r": 47,
"g": 25,
"b": 124
},
"hsl": {
"h": 253.333,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.31912,
"c": 0.15418,
"h": 283.6
},
"luminance": 0.02755
}Semantic roles & 50–950 ramp
primary
#2F197C
secondary
#98B040
accent
#E93EC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F