#B42018#B42018
#B42018 is a mid, vivid red. Relative luminance 0.108; OKLCH L 49.8% C 0.184 H 29.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #B42018 |
|---|---|
| RGB | rgb(180, 32, 24) |
| HSL | hsl(3, 76%, 40%) |
| HSV | hsv(3, 87%, 71%) |
| CMYK | cmyk(0%, 82.2%, 86.7%, 29.4%) |
| CIE-LAB | lab(39.25, 56.78, 43.18) |
| CIE-LCH | lch(39.25, 71.33, 37.25°) |
| OKLab | oklab(49.82% 0.161 0.0891) |
| OKLCH | oklch(49.82% 0.184 29) |
| XYZ | xyz(19.5063, 10.8055, 1.9226) |
| Luminance | 0.1080 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.44
Scarlet
#BE0119
ΔE00 2.63
Darkish Red
#A90308
ΔE00 3.69
Brick
#A03623
ΔE00 4.42
Rusty Red
#AF2F0D
ΔE00 4.50
Brownish Red
#9E3623
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B42018 #18ACB4
analogous
#B4185E #B42018 #B46E18
triadic
#B42018 #18B420 #2018B4
tetradic
#B42018 #5EB418 #18ACB4 #6E18B4
square
#B42018 #5EB418 #18ACB4 #6E18B4
split-complementary
#B42018 #18B46E #185EB4
monochromatic
#480D0A #7E1611 #B42018 #E23127 #E9645D
Accessibility & contrast
On white
6.64
#B42018 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#B42018 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B42018
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B42018 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B42018 | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#514814
Deuteranopia (green-blind)
#75680D
Tritanopia (blue-blind)
#C70021
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #b42018; /* rgb */ color: rgb(180, 32, 24); /* oklch */ color: oklch(49.8% 0.184 29.0);
Tailwind
colors: {
custom: {
50: '#d56b57',
500: '#b42018',
950: '#000000',
},
}SCSS
$custom: #b42018; $custom-light: #d56b57; $custom-dark: #000000;
JSON
{
"hex": "#b42018",
"rgb": {
"r": 180,
"g": 32,
"b": 24
},
"hsl": {
"h": 3.077,
"s": 76.471,
"l": 40
},
"oklch": {
"l": 0.49821,
"c": 0.18399,
"h": 29
},
"luminance": 0.10802
}Semantic roles & 50–950 ramp
primary
#B42018
secondary
#5BC7CD
accent
#E9F335
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160803
muted
#847A78