#BA3131#BA3131
#BA3131 is a mid, vivid red. Relative luminance 0.129; OKLCH L 52.6% C 0.174 H 25.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #BA3131 |
|---|---|
| RGB | rgb(186, 49, 49) |
| HSL | hsl(0, 58%, 46%) |
| HSV | hsv(0, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 73.7%, 27.1%) |
| CIE-LAB | lab(42.55, 54.17, 33.19) |
| CIE-LCH | lch(42.55, 63.53, 31.50°) |
| OKLab | oklab(52.57% 0.1571 0.075) |
| OKLCH | oklch(52.57% 0.174 25.5) |
| XYZ | xyz(21.9049, 12.8608, 4.2341) |
| Luminance | 0.1286 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dull Red
#BB3F3F
ΔE00 3.15
Firebrick
#B22222
ΔE00 3.58
Reddish
#C44240
ΔE00 4.37
Lipstick Red
#C0022F
ΔE00 4.57
Brown
#A52A2A
ΔE00 4.64
Scarlet
#BE0119
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA3131 #31BABA
analogous
#BA3175 #BA3131 #BA7531
triadic
#BA3131 #31BA31 #3131BA
tetradic
#BA3131 #75BA31 #31BABA #7531BA
square
#BA3131 #75BA31 #31BABA #7531BA
split-complementary
#BA3131 #31BA75 #3175BA
monochromatic
#591717 #8A2424 #BA3131 #D25656 #DF8686
Accessibility & contrast
On white
5.88
#BA3131 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#BA3131 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA3131
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA3131 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA3131 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#59522F
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#CD0033
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ba3131; /* rgb */ color: rgb(186, 49, 49); /* oklch */ color: oklch(52.6% 0.174 25.5);
Tailwind
colors: {
custom: {
50: '#d77369',
500: '#ba3131',
950: '#000000',
},
}SCSS
$custom: #ba3131; $custom-light: #d77369; $custom-dark: #000000;
JSON
{
"hex": "#ba3131",
"rgb": {
"r": 186,
"g": 49,
"b": 49
},
"hsl": {
"h": 0,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.52567,
"c": 0.17405,
"h": 25.5
},
"luminance": 0.12857
}Semantic roles & 50–950 ramp
primary
#BA3131
secondary
#7EC9C9
accent
#E2E246
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A