#2F198C#2F198C
#2F198C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.174 H 280.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2F198C |
|---|---|
| RGB | rgb(47, 25, 140) |
| HSL | hsl(251, 70%, 32%) |
| HSV | hsv(251, 82%, 55%) |
| CMYK | cmyk(66.4%, 82.1%, 0%, 45.1%) |
| CIE-LAB | lab(20.80, 43.22, -59.17) |
| CIE-LCH | lch(20.80, 73.27, 306.14°) |
| OKLab | oklab(33.67% 0.0312 -0.1708) |
| OKLCH | oklch(33.67% 0.174 280.4) |
| XYZ | xyz(6.2520, 3.1926, 25.0926) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.92
Indigo (survey)
#380282
ΔE00 3.85
Cobalt Blue
#030AA7
ΔE00 4.62
Darkblue
#00008B
ΔE00 4.84
Royal Blue (survey)
#0504AA
ΔE00 5.04
Midnight Blue
#191970
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F198C #768C19
analogous
#193D8C #2F198C #68198C
triadic
#2F198C #8C2F19 #198C2F
tetradic
#2F198C #8C193D #768C19 #198C68
square
#2F198C #8C193D #768C19 #198C68
split-complementary
#2F198C #8C6819 #3D8C19
monochromatic
#0C0624 #1E1058 #2F198C #4022C0 #6042DD
Accessibility & contrast
On white
12.82
#2F198C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2F198C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F198C
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F198C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F198C | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f198c; /* rgb */ color: rgb(47, 25, 140); /* oklch */ color: oklch(33.7% 0.174 280.4);
Tailwind
colors: {
custom: {
50: '#765aaf',
500: '#2f198c',
950: '#000000',
},
}SCSS
$custom: #2f198c; $custom-light: #765aaf; $custom-dark: #000000;
JSON
{
"hex": "#2f198c",
"rgb": {
"r": 47,
"g": 25,
"b": 140
},
"hsl": {
"h": 251.478,
"s": 69.697,
"l": 32.353
},
"oklch": {
"l": 0.33667,
"c": 0.17364,
"h": 280.4
},
"luminance": 0.03193
}Semantic roles & 50–950 ramp
primary
#2F198C
secondary
#A7BE43
accent
#ED3BCB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F