#31887F#31887F
#31887F is a mid, moderate teal. Relative luminance 0.198; OKLCH L 57.2% C 0.083 H 185.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #31887F |
|---|---|
| RGB | rgb(49, 136, 127) |
| HSL | hsl(174, 47%, 36%) |
| HSV | hsv(174, 64%, 53%) |
| CMYK | cmyk(64%, 0%, 6.6%, 46.7%) |
| CIE-LAB | lab(51.60, -27.96, -2.84) |
| CIE-LCH | lch(51.60, 28.10, 185.79°) |
| OKLab | oklab(57.25% -0.0829 -0.0081) |
| OKLCH | oklch(57.25% 0.083 185.6) |
| XYZ | xyz(13.8998, 19.7921, 23.1623) |
| Luminance | 0.1979 (WCAG relative) |
| Temperature | cool |
| Family | teal |
Closest named colors
Greenish Blue
#0B8B87
ΔE00 2.91
Dusty Teal
#4C9085
ΔE00 4.15
Darkcyan
#008B8B
ΔE00 4.19
Teal (survey)
#029386
ΔE00 4.46
Dark Cyan
#0A888A
ΔE00 4.70
Teal
#008080
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31887F #88313A
analogous
#318854 #31887F #316688
triadic
#31887F #7F3188 #887F31
tetradic
#31887F #543188 #88313A #668831
square
#31887F #543188 #88313A #668831
split-complementary
#31887F #883166 #885431
monochromatic
#112E2B #215B55 #31887F #41B5A9 #6AC9BF
Accessibility & contrast
On white
4.23
#31887F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#31887F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #31887F
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31887F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##31887F | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#81817F
Deuteranopia (green-blind)
#747780
Tritanopia (blue-blind)
#008B85
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #31887f; /* rgb */ color: rgb(49, 136, 127); /* oklch */ color: oklch(57.2% 0.083 185.6);
Tailwind
colors: {
custom: {
50: '#74aba4',
500: '#31887f',
950: '#000000',
},
}SCSS
$custom: #31887f; $custom-light: #74aba4; $custom-dark: #000000;
JSON
{
"hex": "#31887f",
"rgb": {
"r": 49,
"g": 136,
"b": 127
},
"hsl": {
"h": 173.793,
"s": 47.027,
"l": 36.275
},
"oklch": {
"l": 0.57249,
"c": 0.08329,
"h": 185.6
},
"luminance": 0.19794
}Semantic roles & 50–950 ramp
primary
#31887F
secondary
#B1646C
accent
#515FD7
background
#F7FAFA
surface
#EDF4F4
border
#C8CECE
text
#09100F
muted
#7B7F7F