#2F199D#2F199D
#2F199D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.194 H 277.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2F199D |
|---|---|
| RGB | rgb(47, 25, 157) |
| HSL | hsl(250, 73%, 36%) |
| HSV | hsv(250, 84%, 62%) |
| CMYK | cmyk(70.1%, 84.1%, 0%, 38.4%) |
| CIE-LAB | lab(22.77, 48.34, -66.42) |
| CIE-LCH | lch(22.77, 82.15, 306.04°) |
| OKLab | oklab(35.6% 0.0258 -0.1919) |
| OKLCH | oklch(35.6% 0.194 277.7) |
| XYZ | xyz(7.6038, 3.7332, 32.2116) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.03
Royal
#0C1793
ΔE00 3.13
Cobalt Blue
#030AA7
ΔE00 3.21
Ultramarine
#2000B1
ΔE00 3.56
Royal Blue (survey)
#0504AA
ΔE00 3.56
Indigo (survey)
#380282
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F199D #879D19
analogous
#19459D #2F199D #71199D
triadic
#2F199D #9D2F19 #199D2F
tetradic
#2F199D #9D1945 #879D19 #199D71
square
#2F199D #9D1945 #879D19 #199D71
split-complementary
#2F199D #9D7119 #459D19
monochromatic
#0F0833 #1F1168 #2F199D #3F21D2 #664EE3
Accessibility & contrast
On white
12.02
#2F199D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2F199D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F199D
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F199D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F199D | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f199d; /* rgb */ color: rgb(47, 25, 157); /* oklch */ color: oklch(35.6% 0.194 277.7);
Tailwind
colors: {
custom: {
50: '#795bbb',
500: '#2f199d',
950: '#000000',
},
}SCSS
$custom: #2f199d; $custom-light: #795bbb; $custom-dark: #000000;
JSON
{
"hex": "#2f199d",
"rgb": {
"r": 47,
"g": 25,
"b": 157
},
"hsl": {
"h": 250,
"s": 72.527,
"l": 35.686
},
"oklch": {
"l": 0.35603,
"c": 0.1936,
"h": 277.7
},
"luminance": 0.03734
}Semantic roles & 50–950 ramp
primary
#2F199D
secondary
#B1C54D
accent
#EF39D1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981