#31887B#31887B
#31887B is a mid, moderate teal. Relative luminance 0.197; OKLCH L 57.1% C 0.085 H 181.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #31887B |
|---|---|
| RGB | rgb(49, 136, 123) |
| HSL | hsl(171, 47%, 36%) |
| HSV | hsv(171, 64%, 53%) |
| CMYK | cmyk(64%, 0%, 9.6%, 46.7%) |
| CIE-LAB | lab(51.48, -29.08, -0.68) |
| CIE-LCH | lch(51.48, 29.09, 181.34°) |
| OKLab | oklab(57.12% -0.0848 -0.0023) |
| OKLCH | oklch(57.12% 0.085 181.6) |
| XYZ | xyz(13.6443, 19.6899, 21.8165) |
| Luminance | 0.1969 (WCAG relative) |
| Temperature | cool |
| Family | teal |
Closest named colors
Greenish Blue
#0B8B87
ΔE00 4.20
Dusty Teal
#4C9085
ΔE00 4.29
Teal (survey)
#029386
ΔE00 4.29
Darkcyan
#008B8B
ΔE00 5.67
Dark Cyan
#0A888A
ΔE00 6.27
Teal
#008080
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31887B #88313E
analogous
#318850 #31887B #316A88
triadic
#31887B #7B3188 #887B31
tetradic
#31887B #503188 #88313E #6A8831
square
#31887B #503188 #88313E #6A8831
split-complementary
#31887B #88316A #885031
monochromatic
#112E2A #215B52 #31887B #41B5A4 #6AC9BB
Accessibility & contrast
On white
4.25
#31887B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#31887B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #31887B
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31887B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##31887B | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82807B
Deuteranopia (green-blind)
#75777C
Tritanopia (blue-blind)
#008A84
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #31887b; /* rgb */ color: rgb(49, 136, 123); /* oklch */ color: oklch(57.1% 0.085 181.6);
Tailwind
colors: {
custom: {
50: '#74aba1',
500: '#31887b',
950: '#000000',
},
}SCSS
$custom: #31887b; $custom-light: #74aba1; $custom-dark: #000000;
JSON
{
"hex": "#31887b",
"rgb": {
"r": 49,
"g": 136,
"b": 123
},
"hsl": {
"h": 171.034,
"s": 47.027,
"l": 36.275
},
"oklch": {
"l": 0.57116,
"c": 0.08483,
"h": 181.6
},
"luminance": 0.19691
}Semantic roles & 50–950 ramp
primary
#31887B
secondary
#B1646F
accent
#5165D7
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E