#2F198F#2F198F
#2F198F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.177 H 279.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F198F |
|---|---|
| RGB | rgb(47, 25, 143) |
| HSL | hsl(251, 70%, 33%) |
| HSV | hsv(251, 83%, 56%) |
| CMYK | cmyk(67.1%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(21.14, 44.13, -60.48) |
| CIE-LCH | lch(21.14, 74.87, 306.12°) |
| OKLab | oklab(34% 0.0303 -0.1746) |
| OKLCH | oklch(34% 0.177 279.8) |
| XYZ | xyz(6.4763, 3.2822, 26.2735) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.79
Indigo (survey)
#380282
ΔE00 4.03
Cobalt Blue
#030AA7
ΔE00 4.29
Royal Blue (survey)
#0504AA
ΔE00 4.70
Darkblue
#00008B
ΔE00 4.86
Indigo Blue
#3A18B1
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F198F #798F19
analogous
#193E8F #2F198F #6A198F
triadic
#2F198F #8F2F19 #198F2F
tetradic
#2F198F #8F193E #798F19 #198F6A
square
#2F198F #8F193E #798F19 #198F6A
split-complementary
#2F198F #8F6A19 #3E8F19
monochromatic
#0D0727 #1E105B #2F198F #4022C3 #6144DE
Accessibility & contrast
On white
12.68
#2F198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2F198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F198F
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F198F | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f198f; /* rgb */ color: rgb(47, 25, 143); /* oklch */ color: oklch(34.0% 0.177 279.8);
Tailwind
colors: {
custom: {
50: '#765ab1',
500: '#2f198f',
950: '#000000',
},
}SCSS
$custom: #2f198f; $custom-light: #765ab1; $custom-dark: #000000;
JSON
{
"hex": "#2f198f",
"rgb": {
"r": 47,
"g": 25,
"b": 143
},
"hsl": {
"h": 251.186,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.34003,
"c": 0.17721,
"h": 279.8
},
"luminance": 0.03283
}Semantic roles & 50–950 ramp
primary
#2F198F
secondary
#A8BF44
accent
#ED3BCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980